phpunit test working if I specify a class but not working if a specify a directory

Hi,
I am able to use phpunit on my code if a specify a class in the configuration of phpunit however if a specify the directory then it does not work.

I am not sure what what I am doing wrong. Please see additional version details if you need it.
I have made a youtube video showing its not working

http://www.youtube.com/watch?v=XML9k8UzCko&feature=youtu.be




vishal@vishal-ThinkPad-Edge-E530:~$ phpunit.phar --version
PHPUnit 3.7.27 by Sebastian Bergmann.

vishal@vishal-ThinkPad-Edge-E530:~$ php --version
PHP 5.3.10-1ubuntu3.8 with Suhosin-Patch (cli) (built: Sep  4 2013 20:00:51)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
    with Xdebug v2.1.0, Copyright (c) 2002-2010, by Derick Rethans
vishal@vishal-ThinkPad-Edge-E530:~$

2 comments

Hi there,

Rename your test file so it has this ending: "bla-bla_Test.php" instead of "bla-bla_test.php" (capital T)

You will also notice that file now has slightly differrent icon (officially recognized as test file).

0

Please sign in to leave a comment.