Skip to content

Error when running phpunit without sqlite installed #11319

Closed
@penyaskito

Description

@penyaskito

When I run phpunit on a fresh checkout without having sqlite libraries, I get an error:

PHP Fatal error:  Call to a member function purge() on a non-object in src/Symfony/Component/HttpKernel/Tests/Profiler/ProfilerTest.php on line 82
PHP Stack trace:
PHP   1. {main}() /usr/local/bin/phpunit:0
PHP   2. PHPUnit_TextUI_Command::main() /usr/local/bin/phpunit:614
PHP   3. PHPUnit_TextUI_Command->run() phar:///usr/local/bin/phpunit/phpunit/TextUI/Command.php:129
PHP   4. PHPUnit_TextUI_TestRunner->doRun() phar:///usr/local/bin/phpunit/phpunit/TextUI/Command.php:176
PHP   5. PHPUnit_Framework_TestSuite->run() phar:///usr/local/bin/phpunit/phpunit/TextUI/TestRunner.php:349
PHP   6. PHPUnit_Framework_TestSuite->run() phar:///usr/local/bin/phpunit/phpunit/Framework/TestSuite.php:705
PHP   7. PHPUnit_Framework_TestSuite->runTest() phar:///usr/local/bin/phpunit/phpunit/Framework/TestSuite.php:745
PHP   8. PHPUnit_Framework_TestCase->run() phar:///usr/local/bin/phpunit/phpunit/Framework/TestSuite.php:775
PHP   9. PHPUnit_Framework_TestResult->run() phar:///usr/local/bin/phpunit/phpunit/Framework/TestCase.php:783
PHP  10. PHPUnit_Framework_TestCase->runBare() phar:///usr/local/bin/phpunit/phpunit/Framework/TestResult.php:648
PHP  11. Symfony\Component\HttpKernel\Tests\Profiler\ProfilerTest->tearDown() phar:///usr/local/bin/phpunit/phpunit/Framework/TestCase.php:870

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions