]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - tests/PHPUnit/Tests/Regression/684.phpt
Added unit tests.
[Github/sugarcrm.git] / tests / PHPUnit / Tests / Regression / 684.phpt
1 --TEST--
2 #684: Unable to find test class when no test methods exists
3 --FILE--
4 <?php
5 $_SERVER['argv'][1] = 'Issue684Test';
6 $_SERVER['argv'][2] = 'Regression/Issue684Test.php';
7
8 require_once dirname(dirname(dirname(__FILE__))) . '/TextUI/Command.php';
9 PHPUnit_TextUI_Command::main();
10 ?>
11 --EXPECTF--
12 PHPUnit %s by Sebastian Bergmann.
13
14 F
15
16 Time: %i seconds
17
18 There was 1 failure:
19
20 1) Warning(PHPUnit_Framework_Warning)
21 No tests found in class "Foo_Bar_Issue684Test".
22 %s/684.php:%i
23
24 FAILURES!
25 Tests: 1, Assertions: 0, Failures: 1.