浏览代码

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