mirror of
https://github.com/pestphp/pest.git
synced 2026-03-09 09:17:23 +01:00
added feedback from @nunomaduro
This commit is contained in:
@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user