Skip to content

Commit

Permalink
Make Travis Green Again
Browse files Browse the repository at this point in the history
  • Loading branch information
kubawerlos authored and sebastianbergmann committed Sep 13, 2018
1 parent c7bc35b commit db43a4f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tests/unit/Runner/TestSuiteSorterTest.php
Expand Up @@ -282,25 +282,29 @@ public function commonSorterOptionsProvider(): array
'default' => [
TestSuiteSorter::ORDER_DEFAULT,
self::IGNORE_DEPENDENCIES,
['testOne', 'testTwo', 'testThree', 'testFour', 'testFive'], ],
['testOne', 'testTwo', 'testThree', 'testFour', 'testFive'],
],

// Activating dependency resolution should have no effect under normal circumstances
'resolve default' => [
TestSuiteSorter::ORDER_DEFAULT,
self::RESOLVE_DEPENDENCIES,
['testOne', 'testTwo', 'testThree', 'testFour', 'testFive']],
['testOne', 'testTwo', 'testThree', 'testFour', 'testFive'],
],

// Reversing without checks should give a simple reverse order
'reverse' => [
TestSuiteSorter::ORDER_REVERSED,
self::IGNORE_DEPENDENCIES,
['testFive', 'testFour', 'testThree', 'testTwo', 'testOne'], ],
['testFive', 'testFour', 'testThree', 'testTwo', 'testOne'],
],

// Reversing with resolution still allows testFive to move to front, testTwo before testOne
'resolve reverse' => [
TestSuiteSorter::ORDER_REVERSED,
self::RESOLVE_DEPENDENCIES,
['testFive', 'testTwo', 'testOne', 'testThree', 'testFour'], ],
['testFive', 'testTwo', 'testOne', 'testThree', 'testFour'],
],
];
}

Expand Down

0 comments on commit db43a4f

Please sign in to comment.