19 lines
503 B
PHP
19 lines
503 B
PHP
--TEST--
|
|
phpunit --testdox php://stdout BankAccountTest ../_files/BankAccountTest.php
|
|
--FILE--
|
|
<?php
|
|
$_SERVER['argv'][1] = '--no-configuration';
|
|
$_SERVER['argv'][2] = '--testdox';
|
|
$_SERVER['argv'][3] = 'BankAccountTest';
|
|
$_SERVER['argv'][4] = __DIR__ . '/../_files/BankAccountTest.php';
|
|
|
|
require __DIR__ . '/../bootstrap.php';
|
|
PHPUnit_TextUI_Command::main();
|
|
--EXPECTF--
|
|
PHPUnit %s by Sebastian Bergmann and contributors.
|
|
|
|
BankAccount
|
|
[x] Balance is initially zero
|
|
[x] Balance cannot become negative
|
|
|