Refactor, use a Collection

wip
This commit is contained in:
Oliver Davies 2020-02-09 14:27:12 +00:00
parent 9418ba4ee7
commit b773e0f76f
6 changed files with 174 additions and 80 deletions

View file

@ -0,0 +1,20 @@
<?php
namespace Opdavies\Tests\DrupalModuleGenerator\Service;
use Opdavies\DrupalModuleGenerator\Service\TestNameConverter;
use PHPUnit\Framework\TestCase;
final class TestNameConverterTest extends TestCase
{
/** @test */
public function it_converts_a_module_name_into_a_test_name()
{
$testNameConverter = new TestNameConverter();
$moduleName = 'my_module';
$testName = 'MyModuleTest';
$this->assertSame($testName, $testNameConverter->__invoke($moduleName));
}
}