symfony - InvalidArgumentExcelption occur to rum unit test case in Symfony2 -


i working in symfony 2 framework. when run unit test case through putty got following fatal error.

fatal error: uncaught exception 'invalidargumentexception' message 'the "symfony/app" directory not exist.' in /vendor/symfony/symfony/src/symfony/component/finder/finder.php

this error occur suddenly. earlier working properly.

can suggest solution?

this error occurs because application kernel location not standard directory.

you have manually set kernel_dir of test suites follows :

<phpunit>     <php>         <server name="kernel_dir>" value="/path/to/your/app/" />     </php> </phpunit> 

see functional tests chapter of symfony documentation.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -