fix some CS
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
|
||||
namespace Thelia\Tests\Tools\_files;
|
||||
|
||||
class A {
|
||||
|
||||
class A
|
||||
{
|
||||
}
|
||||
|
||||
@@ -4,5 +4,5 @@ namespace Thelia\Tests\Tools\_files;
|
||||
|
||||
class B
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user