mirror of
https://github.com/pestphp/pest.git
synced 2026-03-10 01:37:21 +01:00
make test directory configurable
This commit is contained in:
@ -4,7 +4,7 @@ use Pest\Exceptions\TestAlreadyExist;
|
||||
use Pest\TestSuite;
|
||||
|
||||
it('does not allow to add the same test description twice', function () {
|
||||
$testSuite = new TestSuite(getcwd());
|
||||
$testSuite = new TestSuite(getcwd(), 'tests');
|
||||
$test = function () {};
|
||||
$testSuite->tests->set(new \Pest\Factories\TestCaseFactory(__FILE__, 'foo', $test));
|
||||
$this->expectException(TestAlreadyExist::class);
|
||||
|
||||
Reference in New Issue
Block a user