| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function testRun() |
||
| 18 | { |
||
| 19 | $filesystem = new Filesystem(); |
||
| 20 | $migrations = $filesystem->files(__DIR__ . '/stub/migrations'); |
||
| 21 | |||
| 22 | $instantiator = Instantiator::create($migrations); |
||
| 23 | |||
| 24 | $collection = $instantiator->run(); |
||
| 25 | static::assertTrue($collection instanceof MigrationCollection); |
||
| 26 | static::assertFalse($collection->isEmpty()); |
||
| 27 | static::assertTrue(count($collection) === 1); |
||
| 28 | static::assertTrue($collection->first() instanceof \Version20190211093348); |
||
| 29 | } |
||
| 30 | } |