Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Gets the current working directory
<?php getcwd(): string|false
<?php });



it('can resolve builtin value types', function () {

    $this->container->add('rootPath', getcwd());

    $this->container->add('testPath', 'tests');



    $instance = $this->container->get(TestSuite::class);
<?php use Pest\TestSuite;



it('does not allow to add the same test description twice', function () {

    $testSuite = new TestSuite(getcwd(), 'tests');

    $method = new TestCaseMethodFactory('foo', 'bar', null);



    $testSuite->tests->set($method);
<?php );



it('alerts users about tests with arguments but no input', function () {

    $testSuite = new TestSuite(getcwd(), 'tests');



    $method = new TestCaseMethodFactory('foo', 'bar', function (int $arg) {

    });
<?php );



it('can return an array of all test suite filenames', function () {

    $testSuite = new TestSuite(getcwd(), 'tests');



    $testSuite->tests->set(new TestCaseMethodFactory('a', 'b', null));

    $testSuite->tests->set(new TestCaseMethodFactory('c', 'd', null));