AppTestCase::getTests PHP 메소드

getTests() 공개 메소드

Overrides parent method to allow selecting tests to run in the current test case It is useful when working on one particular test
public getTests ( ) : array
리턴 array List of tests to run
    public function getTests()
    {
        if (!empty($this->_testsToRun)) {
            debug('Only the following tests will be executed: ' . join(', ', (array) $this->_testsToRun), false, false);
            $result = array_merge(array('start', 'startCase'), (array) $this->_testsToRun, array('endCase', 'end'));
            return $result;
        } else {
            return parent::getTests();
        }
    }