11-22-2017, 10:11 AM
hey,
currently im trying to get phpunit run all tests ( include own application tests ) in phpstorm.
1. install all dependency via composer
( got an error on extractTo phpunit/php-code-coverage : no such file or stream | and git was not found : github.com/sebastianbergmann/php-code-coverage.git ) -> guess i dont need this for testing, so just as notice
2. download phpunit.phar and select it in Settings/Languages&Frameworks/PHP/TestFramework
when i try to run a test without the configuration file i get :
Fatal error: Class 'CodeIgniter\Test\CIDatabaseTestCase' not found
when i try to run a test with the configuration file ( phpunit.xml.dist ) i get :
require(application/Config/Paths.php): failed to open stream [...] \tests\_support\_bootstrap.php on line 10
im very new to phpunit - so maybe i miss some phpstorm configuration, but when i use the build-in test creation it work ( but i dont get codeignigter to run in a TestCase class )
thx for reading - hope someone had the same problems and solved it^^
currently im trying to get phpunit run all tests ( include own application tests ) in phpstorm.
1. install all dependency via composer
( got an error on extractTo phpunit/php-code-coverage : no such file or stream | and git was not found : github.com/sebastianbergmann/php-code-coverage.git ) -> guess i dont need this for testing, so just as notice
2. download phpunit.phar and select it in Settings/Languages&Frameworks/PHP/TestFramework
when i try to run a test without the configuration file i get :
Fatal error: Class 'CodeIgniter\Test\CIDatabaseTestCase' not found
when i try to run a test with the configuration file ( phpunit.xml.dist ) i get :
require(application/Config/Paths.php): failed to open stream [...] \tests\_support\_bootstrap.php on line 10
im very new to phpunit - so maybe i miss some phpstorm configuration, but when i use the build-in test creation it work ( but i dont get codeignigter to run in a TestCase class )
thx for reading - hope someone had the same problems and solved it^^