]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - tests/PHPUnit/Tests/TextUI/debug.phpt
Added unit tests.
[Github/sugarcrm.git] / tests / PHPUnit / Tests / TextUI / debug.phpt
1 --TEST--
2 phpunit --debug BankAccountTest ../../Samples/BankAccount/BankAccountTest.php
3 --FILE--
4 <?php
5 $_SERVER['argv'][1] = '--debug';
6 $_SERVER['argv'][2] = 'BankAccountTest';
7 $_SERVER['argv'][3] = '../Samples/BankAccount/BankAccountTest.php';
8
9 require_once dirname(dirname(dirname(__FILE__))) . '/TextUI/Command.php';
10 PHPUnit_TextUI_Command::main();
11 ?>
12 --EXPECTF--
13 PHPUnit %s by Sebastian Bergmann.
14
15
16 Starting test 'testBalanceIsInitiallyZero(BankAccountTest)'.
17 .
18 Starting test 'testBalanceCannotBecomeNegative(BankAccountTest)'.
19 .
20 Starting test 'testBalanceCannotBecomeNegative2(BankAccountTest)'.
21 .
22
23 Time: %i seconds
24
25 OK (3 tests, 3 assertions)