added feedback from @nunomaduro

This commit is contained in:
Adrian Nürnberger
2020-06-19 20:39:09 +02:00
parent d0a74931dd
commit 75f7ee0acf
6 changed files with 23 additions and 73 deletions

View File

@ -16,32 +16,25 @@ test('second', function () use (&$runCounter) {
return 'second';
});
test('dependsOn', function () {
test('depends', function () {
assertEquals(
['first', 'second'],
func_get_args()
);
})->dependsOn('first', 'second');
})->depends('first', 'second');
test('dependsOn with ...params', function (string ...$params) {
assertEquals(
['first', 'second'],
$params
);
})->dependsOn('first', 'second');
test('dependsOn with defined arguments', function (string $first, string $second) {
assertEquals('first', $first);
assertEquals('second', $second);
})->dependsOn('first', 'second');
test('dependsOn run test only once', function () use (&$runCounter) {
assertEquals(2, $runCounter);
})->dependsOn('first', 'second');
test('depends alias for dependsOn', function (string ...$params) {
test('depends with ...params', function (string ...$params) {
assertEquals(
['first', 'second'],
$params
);
})->depends('first', 'second');
test('depends with defined arguments', function (string $first, string $second) {
assertEquals('first', $first);
assertEquals('second', $second);
})->depends('first', 'second');
test('depends run test only once', function () use (&$runCounter) {
assertEquals(2, $runCounter);
})->depends('first', 'second');