| 1 | <?php |
||
| 13 | class CandidatesFinderSpec extends ObjectBehavior |
||
| 14 | { |
||
| 15 | function it_should_find_candidates_in_numerical_order() |
||
| 16 | { |
||
| 17 | $results = $this->find(__DIR__ . DIRECTORY_SEPARATOR . 'fixture/finder'); |
||
| 18 | $results->count()->shouldReturn(2); |
||
| 19 | $filenames = []; |
||
| 20 | |||
| 21 | foreach ($results->getWrappedObject() as $file) { |
||
| 22 | array_push($filenames, $file->getFilename()); |
||
| 23 | } |
||
| 24 | |||
| 25 | expect($filenames)->shouldEqual(['001_test.sql', '002_test.sql']); |
||
| 26 | } |
||
| 27 | } |
||
| 28 |