Fix AsyncBusTests

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
pull/14167/head
Roeland Jago Douma 5 years ago
parent a1b87bc81e
commit 843066b708
No known key found for this signature in database
GPG Key ID: F941078878347C0C

@ -136,7 +136,7 @@ abstract class AsyncBusTest extends TestCase {
public function testClosureSelf() {
$this->getBus()->push(function () {
self::$lastCommand = 'closure-self';
AsyncBusTest::$lastCommand = 'closure-self';
});
$this->runJobs();
$this->assertEquals('closure-self', self::$lastCommand);
@ -154,7 +154,7 @@ abstract class AsyncBusTest extends TestCase {
public function testClosureBind() {
$state = 'bar';
$this->getBus()->push(function () use ($state) {
self::$lastCommand = 'closure-' . $state;
AsyncBusTest::$lastCommand = 'closure-' . $state;
});
$this->runJobs();
$this->assertEquals('closure-bar', self::$lastCommand);

Loading…
Cancel
Save