]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - tests/PHPUnit/Tests/TextUI/log-graphviz.phpt
Added unit tests.
[Github/sugarcrm.git] / tests / PHPUnit / Tests / TextUI / log-graphviz.phpt
1 --TEST--
2 phpunit --log-graphviz php://stdout BankAccountTest ../../Samples/BankAccount/BankAccountTest.php
3 --FILE--
4 <?php
5 $_SERVER['argv'][1] = '--log-graphviz';
6 $_SERVER['argv'][2] = 'php://stdout';
7 $_SERVER['argv'][3] = 'BankAccountTest';
8 $_SERVER['argv'][4] = '../Samples/BankAccount/BankAccountTest.php';
9
10 require_once dirname(dirname(dirname(__FILE__))) . '/TextUI/Command.php';
11 PHPUnit_TextUI_Command::main();
12 ?>
13 --EXPECTF--
14 PHPUnit %s by Sebastian Bergmann.
15
16 ...strict digraph G {
17     overlap=scale;
18     splines=true;
19     sep=.1;
20     fontsize=8;
21     BankAccountTest [ color=green ];
22     subgraph BankAccountTest {
23         testBalanceIsInitiallyZero [ color=green ];
24         testBalanceCannotBecomeNegative [ color=green ];
25         testBalanceCannotBecomeNegative2 [ color=green ];
26     }
27     BankAccountTest -> testBalanceIsInitiallyZero;
28     BankAccountTest -> testBalanceCannotBecomeNegative;
29     BankAccountTest -> testBalanceCannotBecomeNegative2;
30 }
31
32
33 Time: %i seconds
34
35 OK (3 tests, 3 assertions)