Nimut / testing-framework

TYPO3 testing framework that provides base classes and configuration for PHPUnit tests
GNU General Public License v2.0
52 stars 25 forks source link

[BUG] Failing functional test results in PHPUnit exception #22

Closed derhansen closed 7 years ago

derhansen commented 7 years ago

When a functional test contains a failing test with assertEquals or assertSame, PHPUnit is unable to parse the output.

Shown Error:

ErrorException: Use of undefined constant PATH_typo3conf - assumed 'PATH_typo3conf' in /home/travis/build/derhansen/TYPO3-testing-framework/.Build/vendor/phpunit/phpunit/src/Util/PHP.php:298

How to reproduce:

1) Add the following test to the functional test suite

    /**
     * @test
     */
    public function failingTestWithAssertSame()
    {
        $this->assertSame('test1', 'test2');
    }

2) Push changes and let Travis CI build

See: https://travis-ci.org/derhansen/TYPO3-testing-framework/jobs/222008133