Closed t3easy closed 4 years ago
I moved one of the core viewhelpers and its test to my extension, changed the namespace and switched from TYPO3\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase
to Nimut\TestingFramework\TestCase\ViewHelperBaseTestcase
and I get the same warning in that tests.
Resolved with #122
The test of my ViewHelper fails because of the following PHP Warning with PHP 7.2 (seven times the same for each set of data):
If I run the Unit tests of the Core ViewHelper,
vendor/phpunit/phpunit/phpunit -c vendor/typo3/testing-framework/Resources/Core/Build/UnitTests.xml typo3/sysext/fluid/Tests/Unit/
in the same environment, I don't get that PHP warning.It seems like a problem with the reflection: https://github.com/TYPO3/TYPO3.CMS/blob/v8.7.28/typo3/sysext/fluid/Classes/Core/ViewHelper/AbstractViewHelper.php#L118-L121
Did I miss to bootstrap something?
My ViewHelper:
The Test