i got phpunit test in symfony though trying use phpunit skelgen generate skeleton test classes. had @ phpunit documentation
phpunit-skelgen --test -- "project\calculator" calculator.php my path file want generate skeleton is:
boltmail\userbundle\boltmailfactory\userloginfactory.php and following documentation have inserted following:
./bin/phpunit-skelgen --test -- "boltmail\userbundle\boltmailfactory\userloginfactory" userloginfactory.php and keeps on throwing invalidargumentexception:
[invalidargumentexception] command "boltmail\userbundle\boltmailfactory\userloginfactory" not defined. any idea guys going wrong before ask yes have installed phpunit , phpunit-skelgen through composer.json
ok after suggestion in below answer changed terminal command this:
./bin/phpunit-skelgen --bootstrap app\bootstrap.php.cache --test -- "boltmail\userbundle\boltmailfactory\userloginfactory" now error:
[invalidargumentexception] command "appbootstrap.php.cache" not defined. before these did:
composer update installed bootstrap/php/cache under app/ dir
you need add
--bootstrap app\bootstrap.php.cache arguments phpunit-skelgen
Comments
Post a Comment