phpMv / php-vuejs

VueJS integration for PHP projects
Apache License 2.0
3 stars 0 forks source link

Scrutinizer test failing #9

Closed jguillaumesio closed 3 years ago

jguillaumesio commented 3 years ago

Trying to find a fix for issues happening during the scrutinizer test, These are the problems :

Test tests/VueJSTest.php:testVueJSToString
[Error] Call to undefined method PHPMV\js\JavascriptUtils::arrayToJsObject()
#1 /home/scrutinizer/build/src/PHPMV/VueJS.php:30
#2 /home/scrutinizer/build/tests/VueJSTest.php:66

Test tests/VueJSTest.php:testVueJSComponent
[Error] Call to undefined method PHPMV\js\JavascriptUtils::arrayToJsObject()
#1 /home/scrutinizer/build/src/PHPMV/VueJSComponent.php:24
#2 /home/scrutinizer/build/tests/VueJSTest.php:80

Actually no idea why we have these errors as the test runs like a charm in local. I maybe have a start of an answer, both of the tests failing use assertEqualsIgnoreNewLines()

jguillaumesio commented 3 years ago

Thanks for the solution !