Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

Problem with SQLite on PHP 8.0 #149

Open
tomasnorre opened this issue Jan 16, 2022 · 1 comment
Open

Problem with SQLite on PHP 8.0 #149

tomasnorre opened this issue Jan 16, 2022 · 1 comment

Comments

@tomasnorre
Copy link
Contributor

Hi,

I have experienced a problem with nimut/testing-framework and PHP 8.0.14
When I run the PHPUnit command

$ TYPO3_PATH_WEB=$PWD/.Build/Web typo3DatabaseDriver=pdo_sqlite .Build/bin/phpunit -c .Build/vendor/nimut/testing-framework/res/Configuration/FunctionalTests.xml Tests/Functional

I run into an exception, thrown by https://github.com/Nimut/testing-framework/blob/main/src/TestingFramework/TestSystem/AbstractTestSystem.php#L729 as dbname isn't defined.

This is not a problem with PHP 7.4.

If I adjust my command to also include typo3DatabaseName=test it's working like expected.

$ TYPO3_PATH_WEB=$PWD/.Build/Web typo3DatabaseDriver=pdo_sqlite typo3DatabaseName=test .Build/bin/phpunit -c .Build/vendor/nimut/testing-framework/res/Configuration/FunctionalTests.xml Tests/Functional

I haven't found out what the reason for the different behaviour here is. But I would expect it to be something with a default value resolved differently in PHP 8.0.

I'll see if I find the issue and a solution. But for now I wanted to share the information in case others runs into the problem.

@lolli42
Copy link

lolli42 commented Jul 17, 2022

This should work when using https://github.com/TYPO3/testing-framework

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants