add new assertion in DIGeneratorTest

This commit is contained in:
Manuel Raynaud
2012-12-21 18:43:12 +01:00
parent 4bcdf2479a
commit eb4de3eb87
2 changed files with 2 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ class DIGeneratorTest extends \PHPUnit_Framework_TestCase
$this->assertArrayHasKey("A", $models); $this->assertArrayHasKey("A", $models);
$this->assertArrayHasKey("B", $models); $this->assertArrayHasKey("B", $models);
$this->assertEquals("Thelia\Tests\Tools\_files\A", $models["A"]);
$this->assertCount(2, $models, "There is more than 2 models in this directory"); $this->assertCount(2, $models, "There is more than 2 models in this directory");
} }

View File

@@ -4,6 +4,7 @@
colors="true" colors="true"
bootstrap="core/autoload.php" bootstrap="core/autoload.php"
verbose="true" verbose="true"
backupGlobals="false"
> >
<testsuites> <testsuites>
<testsuite name="Thelia"> <testsuite name="Thelia">