1--TEST-- 2phpunit --log-teamcity php://stdout BankAccountTest ../_files/BankAccountTest.php 3--FILE-- 4<?php 5$_SERVER['argv'][1] = '--no-configuration'; 6$_SERVER['argv'][2] = '--log-teamcity'; 7$_SERVER['argv'][3] = 'php://stdout'; 8$_SERVER['argv'][4] = 'BankAccountTest'; 9$_SERVER['argv'][5] = __DIR__ . '/../_files/BankAccountTest.php'; 10 11require __DIR__ . '/../bootstrap.php'; 12PHPUnit_TextUI_Command::main(); 13--EXPECTF-- 14PHPUnit %s by Sebastian Bergmann and contributors. 15 16 17##teamcity[testCount count='3' flowId='%d'] 18 19##teamcity[testSuiteStarted name='BankAccountTest' locationHint='php_qn://%s/tests/_files/BankAccountTest.php::\BankAccountTest' flowId='%d'] 20 21##teamcity[testStarted name='testBalanceIsInitiallyZero' locationHint='php_qn://%s/tests/_files/BankAccountTest.php::\BankAccountTest::testBalanceIsInitiallyZero' flowId='%d'] 22. 23##teamcity[testFinished name='testBalanceIsInitiallyZero' duration='%s' flowId='%d'] 24 25##teamcity[testStarted name='testBalanceCannotBecomeNegative' locationHint='php_qn://%s/tests/_files/BankAccountTest.php::\BankAccountTest::testBalanceCannotBecomeNegative' flowId='%d'] 26. 27##teamcity[testFinished name='testBalanceCannotBecomeNegative' duration='%s' flowId='%d'] 28 29##teamcity[testStarted name='testBalanceCannotBecomeNegative2' locationHint='php_qn://%s/tests/_files/BankAccountTest.php::\BankAccountTest::testBalanceCannotBecomeNegative2' flowId='%d'] 30. 3 / 3 (100%) 31##teamcity[testFinished name='testBalanceCannotBecomeNegative2' duration='%s' flowId='%d'] 32 33##teamcity[testSuiteFinished name='BankAccountTest' flowId='%d'] 34 35 36Time: %s, Memory: %s 37 38OK (3 tests, 3 assertions) 39