Преглед изворни кода

PHP 5.3 this/that compatibility

Nils Adermann пре 10 година
родитељ
комит
67f10c1601
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      tests/Composer/Test/Repository/ComposerRepositoryTest.php

+ 1 - 1
tests/Composer/Test/Repository/ComposerRepositoryTest.php

@@ -148,7 +148,7 @@ class ComposerRepositoryTest extends TestCase
 
         $that = $this;
         $packages = $repo->loadRecursively(array('a'), function ($name, $stability) use ($that) {
-            $this->assertEquals('a', $name);
+            $that->assertEquals('a', $name);
             return true;
         });