fix some CS

This commit is contained in:
Manuel Raynaud
2013-01-09 09:13:25 +01:00
parent a168082d54
commit 4e21c25867
26 changed files with 422 additions and 346 deletions

View File

@@ -32,34 +32,34 @@ class DIGeneratorTest extends \PHPUnit_Framework_TestCase
public function testGenDiModelWithoutModels()
{
$models = DIGenerator::genDiModel(__DIR__ . '/_filesEmpty');
$this->assertEmpty($models);
}
/**
* @covers DIGenerator::genDiModel
*/
public function testGenDiModelWithModels()
{
$models = DIGenerator::genDiModel(__DIR__ . '/_files');
$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");
}
/**
* @covers DIGenerator::genDiModel
*/
public function testGenDiModelWithModelsAndExclusion()
{
$models = DIGenerator::genDiModel(__DIR__ . '/_files',array('B'));
$this->assertArrayHasKey("A", $models);
$this->assertCount(1, $models, "There is more than 2 models in this directory");
}
/**
* @expectedException RuntimeException
* @covers DIGenerator::genDiModel
@@ -67,7 +67,6 @@ class DIGeneratorTest extends \PHPUnit_Framework_TestCase
public function testGenDiModelWithWrongDirectory()
{
$models = DIGenerator::genDiModel(__DIR__ . '/wrongDirectory');
}
}

View File

@@ -2,6 +2,6 @@
namespace Thelia\Tests\Tools\_files;
class A {
class A
{
}

View File

@@ -4,5 +4,5 @@ namespace Thelia\Tests\Tools\_files;
class B
{
}