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

@ -84,20 +84,15 @@ final class TestCall
return $this;
}
public function dependsOn(string ...$tests): TestCall
public function depends(string ...$tests): TestCall
{
$this->testCaseFactory
->factoryProxies
->add(Backtrace::file(), Backtrace::line(), 'addDependencies', [$tests]);
->add(Backtrace::file(), Backtrace::line(), 'setDependencies', [$tests]);
return $this;
}
public function depends(string ...$tests): TestCall
{
return $this->dependsOn(...$tests);
}
/**
* Makes the test suite only this test case.
*/