| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class ReaderFactoryTest extends \PHPUnit\Framework\TestCase |
||
| 16 | { |
||
| 17 | public function testCreate(): void |
||
| 18 | { |
||
| 19 | $this->checkGet('.env', EnvReader::class); |
||
| 20 | $this->checkGet('.json', JsonReader::class); |
||
| 21 | $yml = $this->checkGet('.yml', YamlReader::class); |
||
| 22 | $yaml = $this->checkGet('.yaml', YamlReader::class); |
||
| 23 | $php = $this->checkGet('.php', PhpReader::class); |
||
| 24 | $php2 = $this->checkGet('.php', PhpReader::class); |
||
| 25 | |||
| 26 | $this->assertNotSame($php, $php2); |
||
| 27 | $this->assertNotSame($yml, $yaml); |
||
| 28 | } |
||
| 29 | |||
| 30 | public function checkGet(string $name, string $class) |
||
| 37 | } |
||
| 38 | } |
||
| 39 |