Browse Source

Cosmetic fixes

Jordi Boggiano 13 năm trước cách đây
mục cha
commit
21d74328e3
1 tập tin đã thay đổi với 2 bổ sung4 xóa
  1. 2 4
      tests/Composer/Test/Autoload/AutoloadGeneratorTest.php

+ 2 - 4
tests/Composer/Test/Autoload/AutoloadGeneratorTest.php

@@ -53,9 +53,7 @@ class AutoloadGeneratorTest extends \PHPUnit_Framework_TestCase
                 return $that->vendorDir;
             }));
 
-        $this->repo = $this->getMockBuilder('Composer\Repository\RepositoryInterface')
-            ->disableOriginalConstructor()
-            ->getMock();
+        $this->repo = $this->getMock('Composer\Repository\RepositoryInterface');
 
         $this->generator = new AutoloadGenerator();
     }
@@ -115,6 +113,6 @@ class AutoloadGeneratorTest extends \PHPUnit_Framework_TestCase
 
     private function assertAutoloadFiles($name, $dir)
     {
-        $this->assertEquals(file_get_contents(__DIR__.'/Fixtures/autoload_'.$name.'.php'), file_get_contents($dir.'/autoload_namespaces.php'));
+        $this->assertFileEquals(__DIR__.'/Fixtures/autoload_'.$name.'.php', $dir.'/autoload_namespaces.php');
     }
 }