php - phpunit-skelgen : No test file generated -


i try use phpunit-skelgen

in doc, written

when using skeleton generator generate code based on class declared in namespace have provide qualified name of class path source file declared in.

for instance, class calculator declared in project namespace need invoke skeleton generator this:

phpunit-skelgen --test -- "project\calculator" calculator.php phpunit skeleton generator 1.0.0 sebastian bergmann.

wrote skeleton "project\calculatortest" "/home/sb/calculatortest.php".

i'm working symfony 2 class :

<?php // src/acme/securitybundle/security/user/myuserprovider.php  namespace acme\securitybundle\security\user;  use symfony\component\security\core\user\userproviderinterface; use symfony\component\security\core\user\userinterface; use symfony\component\security\core\exception\usernamenotfoundexception; use symfony\component\security\core\exception\unsupporteduserexception;  use acme\securitybundle\security\user\myuser;  class myuserprovider implements userproviderinterface {     // public functions ... } 

i've tried run, application base directory

phpunit-skelgen --test -- "acme\securitybundle\security\user\myuserprovider" "absolute\path\to\src\acme\securitybundle\security\user\myuserprovider.php" phpunit-skelgen --test -- "acme\securitybundle\security\user\myuserprovider" absolute\path\to\src\acme\securitybundle\security\user\myuserprovider.php phpunit-skelgen --test -- acme\securitybundle\security\user\myuserprovider absolute\path\to\src\acme\securitybundle\security\user\myuserprovider.php 

even

phpunit-skelgen --test -- "acme\securitybundle\security\user\myuserprovider" myuserprovider.php 

and

phpunit-skelgen --test -- myuserprovider myuserprovider.php 

from absolute\path\to\src\acme\securitybundle\security\user\

phpunit-skelgen --test -- "acme\securitybundle\security\user\myuserprovider" myuserprovider.php 

the output always

phpunit skeleton generator 1.2.1 sebastian bergmann. 

nothing more. has idea ?

i forgot bootstrap

phpunit-skelgen --bootstrap app\bootstrap.php.cache --test -- "acme\securitybundle\security\user\myuserprovider" "e:\path\to\app\src\acme\securitybundle\security\user\myuserprovider.php" 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -