]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - tests/PHPUnit/Tests/TextUI/tap.phpt
Added unit tests.
[Github/sugarcrm.git] / tests / PHPUnit / Tests / TextUI / tap.phpt
1 --TEST--
2 phpunit --tap BankAccountTest ../../Samples/BankAccount/BankAccountTest.php
3 --FILE--
4 <?php
5 $_SERVER['argv'][1] = '--tap';
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 TAP version 13
14 ok 1 - testBalanceIsInitiallyZero(BankAccountTest)
15 ok 2 - testBalanceCannotBecomeNegative(BankAccountTest)
16 ok 3 - testBalanceCannotBecomeNegative2(BankAccountTest)
17 1..3