2 phpunit --log-xml php://stdout BankAccountTest ../../Samples/BankAccount/BankAccountTest.php
5 $_SERVER['argv'][1] = '--log-xml';
6 $_SERVER['argv'][2] = 'php://stdout';
7 $_SERVER['argv'][3] = 'BankAccountTest';
8 $_SERVER['argv'][4] = '../Samples/BankAccount/BankAccountTest.php';
10 require_once dirname(dirname(dirname(__FILE__))) . '/TextUI/Command.php';
11 PHPUnit_TextUI_Command::main();
14 PHPUnit %s by Sebastian Bergmann.
16 ...<?xml version="1.0" encoding="UTF-8"?>
18 <testsuite name="BankAccountTest" file="%s/BankAccountTest.php" fullPackage="PHPUnit" category="Testing" package="PHPUnit" tests="3" assertions="3" failures="0" errors="0" time="%f">
19 <testcase name="testBalanceIsInitiallyZero" class="BankAccountTest" file="%s/BankAccountTest.php" line="76" assertions="1" time="%f"/>
20 <testcase name="testBalanceCannotBecomeNegative" class="BankAccountTest" file="%s/BankAccountTest.php" line="86" assertions="1" time="%f"/>
21 <testcase name="testBalanceCannotBecomeNegative2" class="BankAccountTest" file="%s/BankAccountTest.php" line="106" assertions="1" time="%f"/>
28 OK (3 tests, 3 assertions)