You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
941 B
22 lines
941 B
diff --git a/tests/AutoloadTest.php b/tests/AutoloadTest.php
|
|
index c8e53e4..f71f150 100644
|
|
--- a/tests/AutoloadTest.php
|
|
+++ b/tests/AutoloadTest.php
|
|
@@ -89,6 +89,7 @@ class AutoloadTest extends \PHPUnit_Framework_TestCase
|
|
**/
|
|
public function testAddClassMapTemplateOrderBis()
|
|
{
|
|
+ $nb = count(Autoload::getClassMap());
|
|
$this->assertFalse(class_exists('Foo\\Bar'));
|
|
require __DIR__.'/fixtures/Foo2/classmap2.php';
|
|
require __DIR__.'/fixtures/Foo/classmap.php';
|
|
@@ -98,7 +99,7 @@ class AutoloadTest extends \PHPUnit_Framework_TestCase
|
|
$this->assertEquals('three', \Foo\Bar::order);
|
|
|
|
$classmap = Autoload::getClassMap();
|
|
- $this->assertEquals(2, count($classmap));
|
|
+ $this->assertEquals($nb+2, count($classmap));
|
|
$this->assertArrayHasKey(__DIR__.'/fixtures/Foo', $classmap);
|
|
$this->assertArrayHasKey(__DIR__.'/fixtures/Foo2', $classmap);
|
|
}
|