1--TEST--
2phpunit --stop-on-warning StopOnWarningTestSuite ./tests/_files/StopOnWarningTestSuite.php
3--FILE--
4<?php
5$_SERVER['argv'][1] = '--no-configuration';
6$_SERVER['argv'][2] = '--stop-on-warning';
7$_SERVER['argv'][3] = 'StopOnWarningTestSuite';
8$_SERVER['argv'][4] = __DIR__ . '/../_files/StopOnWarningTestSuite.php';
9
10require __DIR__ . '/../bootstrap.php';
11PHPUnit_TextUI_Command::main();
12--EXPECTF--
13PHPUnit %s by Sebastian Bergmann and contributors.
14
15W
16
17Time: %s, Memory: %s
18
19There was 1 warning:
20
211) Warning
22No tests found in class "NoTestCases".
23
24WARNINGS!
25Tests: 1, Assertions: 0, Warnings: 1.