]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - tests/PHPUnit/Tests/TextUI/testdox.phpt
Added unit tests.
[Github/sugarcrm.git] / tests / PHPUnit / Tests / TextUI / testdox.phpt
1 --TEST--
2 phpunit --testdox php://stdout BankAccountTest ../../Samples/BankAccount/BankAccountTest.php
3 --FILE--
4 <?php
5 $_SERVER['argv'][1] = '--testdox';
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 BankAccount
16  [x] Balance is initially zero
17  [x] Balance cannot become negative
18