b23prodtm / acake2php

The Docker web-server features well-known functionalities as cool as posting some web contents with pictures stored in a database. Submodules may be installed via Composer packages.
http://www.b23prodtm.info
Apache License 2.0
1 stars 0 forks source link

<server>/test.php: Closure Serialize Fail #56

Open b23prodtm opened 3 years ago

b23prodtm commented 3 years ago

Closure serialization PHPUNIT_FRAMEWORK_EXCEPTIONWRAPPER Serialization of 'Closure' is not allowed Test case: E14ControllerTest(testIndex) Stack trace: /var/www/localhost/htdocs/app/Vendor/phpunit/phpunit/src/Framework/TestCase.php : 868 /var/www/localhost/htdocs/lib/Cake/TestSuite/CakeTestCase.php : 84 /var/www/localhost/htdocs/app/Vendor/phpunit/phpunit/src/Framework/TestSuite.php : 733 /var/www/localhost/htdocs/app/Vendor/phpunit/phpunit/src/TextUI/TestRunner.php : 517 /var/www/localhost/htdocs/lib/Cake/TestSuite/CakeTestRunner.php : 76 /var/www/localhost/htdocs/lib/Cake/TestSuite/CakeTestSuiteCommand.php : 98 /var/www/localhost/htdocs/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php : 277 /var/www/localhost/htdocs/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php : 112 /var/www/localhost/htdocs/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php : 129 /var/www/localhost/htdocs/app/webroot/test.php : 95

b23prodtm commented 3 years ago

Possible solution: https://github.com/opis/closure

stackO: https://stackoverflow.com/a/39885443/6663884

b23prodtm commented 2 years ago

Also found errors in buffers ˋ`ˋ /var/www/localhost/htdocs/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php : 112 /var/www/localhost/htdocs/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php : 129 /var/www/localhost/htdocs/app/webroot/test.php : 95

Notice: ob_end_flush(): failed to delete and flush buffer. No buffer to delete or flush in /var/www/localhost/htdocs/lib/Cake/TestSuite/Reporter/CakeHtmlReporter.php on line 146 1/1 test methods complete: 0 passes, 1 fails, 0 assertions and 0 exceptions``ˋ

b23prodtm commented 2 years ago

Also found errors in buffers ˋ`ˋ /var/www/localhost/htdocs/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php : 112 /var/www/localhost/htdocs/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php : 129 /var/www/localhost/htdocs/app/webroot/test.php : 95

Notice: ob_end_flush(): failed to delete and flush buffer. No buffer to delete or flush in /var/www/localhost/htdocs/lib/Cake/TestSuite/Reporter/CakeHtmlReporter.php on line 146 1/1 test methods complete: 0 passes, 1 fails, 0 assertions and 0 exceptions``ˋ