symfony - InvalidArgumentExcelption occur to rum unit test case in Symfony2 -
this question has answer here:
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
Post a Comment