1--TEST--
2phpunit --teamcity ExceptionStackTest ../_files/ExceptionStackTest.php
3--FILE--
4<?php
5$_SERVER['argv'][1] = '--no-configuration';
6$_SERVER['argv'][2] = '--teamcity';
7$_SERVER['argv'][3] = 'ExceptionStackTest';
8$_SERVER['argv'][4] = __DIR__ . '/../_files/ExceptionStackTest.php';
9
10require __DIR__ . '/../bootstrap.php';
11PHPUnit_TextUI_Command::main();
12--EXPECTF--
13PHPUnit %s by Sebastian Bergmann and contributors.
14
15
16##teamcity[testCount count='2' flowId='%d']
17
18##teamcity[testSuiteStarted name='ExceptionStackTest' locationHint='php_qn://%s/tests/_files/ExceptionStackTest.php::\ExceptionStackTest' flowId='%d']
19
20##teamcity[testStarted name='testPrintingChildException' locationHint='php_qn://%s/tests/_files/ExceptionStackTest.php::\ExceptionStackTest::testPrintingChildException' flowId='%d']
21
22##teamcity[testFailed name='testPrintingChildException' message='Child exception|nmessage|nFailed asserting that two arrays are equal.|n--- Expected|n+++ Actual|n@@ @@|n Array (|n-    0 => 1|n+    0 => 2|n )|n' details=' %s/tests/_files/ExceptionStackTest.php:10|n |n Caused by|n message|n Failed asserting that two arrays are equal.|n --- Expected|n +++ Actual|n @@ @@|n  Array (|n -    0 => 1|n +    0 => 2|n  )|n |n %s/tests/_files/ExceptionStackTest.php:7|n ' flowId='%d']
23
24##teamcity[testFinished name='testPrintingChildException' duration='%d' flowId='%d']
25
26##teamcity[testStarted name='testNestedExceptions' locationHint='php_qn://%s/tests/_files/ExceptionStackTest.php::\ExceptionStackTest::testNestedExceptions' flowId='%d']
27
28##teamcity[testFailed name='testNestedExceptions' message='Exception : One' details=' %s/tests/_files/ExceptionStackTest.php:18|n ' flowId='%d']
29
30##teamcity[testFinished name='testNestedExceptions' duration='%d' flowId='%d']
31
32##teamcity[testSuiteFinished name='ExceptionStackTest' flowId='%d']
33
34
35Time: %s, Memory: %s
36
37
38ERRORS!
39Tests: 2, Assertions: 1, Errors: 2.