Parcourir la source

Fix AsyncBusTests

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
tags/v16.0.0alpha1
Roeland Jago Douma il y a 5 ans
Parent
révision
843066b708
Aucun compte lié à l'adresse e-mail de l'auteur
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2
    2
      tests/lib/Command/AsyncBusTest.php

+ 2
- 2
tests/lib/Command/AsyncBusTest.php Voir le fichier

@@ -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);

Chargement…
Annuler
Enregistrer