From eb4de3eb879c55d3a78414a757cf40dcbec4b8aa Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Fri, 21 Dec 2012 18:43:12 +0100 Subject: [PATCH] add new assertion in DIGeneratorTest --- core/lib/Thelia/Tests/Tools/DIGeneratorTest.php | 1 + phpunit.xml | 1 + 2 files changed, 2 insertions(+) diff --git a/core/lib/Thelia/Tests/Tools/DIGeneratorTest.php b/core/lib/Thelia/Tests/Tools/DIGeneratorTest.php index 6dde74625..e87905233 100644 --- a/core/lib/Thelia/Tests/Tools/DIGeneratorTest.php +++ b/core/lib/Thelia/Tests/Tools/DIGeneratorTest.php @@ -20,6 +20,7 @@ class DIGeneratorTest extends \PHPUnit_Framework_TestCase $this->assertArrayHasKey("A", $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"); } diff --git a/phpunit.xml b/phpunit.xml index bacb9c630..ba6132785 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -4,6 +4,7 @@ colors="true" bootstrap="core/autoload.php" verbose="true" + backupGlobals="false" >