|
| 1 | +--TEST-- |
| 2 | +phpunit --covers PHPUnit\TestFixture\CoversUsesFiltering\Foo |
| 3 | +--FILE-- |
| 4 | +<?php declare(strict_types=1); |
| 5 | +$traceFile = tempnam(sys_get_temp_dir(), __FILE__); |
| 6 | + |
| 7 | +$_SERVER['argv'][] = '--do-not-cache-result'; |
| 8 | +$_SERVER['argv'][] = '--no-configuration'; |
| 9 | +$_SERVER['argv'][] = '--no-output'; |
| 10 | +$_SERVER['argv'][] = '--log-events-text'; |
| 11 | +$_SERVER['argv'][] = $traceFile; |
| 12 | +$_SERVER['argv'][] = '--covers'; |
| 13 | +$_SERVER['argv'][] = \PHPUnit\TestFixture\CoversUsesFiltering\Foo::class; |
| 14 | +$_SERVER['argv'][] = __DIR__ . '/../../_files/covers-uses'; |
| 15 | + |
| 16 | +require_once __DIR__ . '/../../../bootstrap.php'; |
| 17 | + |
| 18 | +(new PHPUnit\TextUI\Application)->run($_SERVER['argv']); |
| 19 | + |
| 20 | +print file_get_contents($traceFile); |
| 21 | + |
| 22 | +unlink($traceFile); |
| 23 | +--EXPECTF-- |
| 24 | +PHPUnit Started (PHPUnit %s using %s) |
| 25 | +Test Runner Configured |
| 26 | +Test Suite Loaded (2 tests) |
| 27 | +Event Facade Sealed |
| 28 | +Test Runner Started |
| 29 | +Test Suite Sorted |
| 30 | +Test Suite Filtered (1 test) |
| 31 | +Test Runner Execution Started (1 test) |
| 32 | +Test Suite Started (CLI Arguments, 1 test) |
| 33 | +Test Suite Started (PHPUnit\TestFixture\CoversUsesFiltering\CoversTest, 1 test) |
| 34 | +Test Preparation Started (PHPUnit\TestFixture\CoversUsesFiltering\CoversTest::testOne) |
| 35 | +Test Prepared (PHPUnit\TestFixture\CoversUsesFiltering\CoversTest::testOne) |
| 36 | +Test Passed (PHPUnit\TestFixture\CoversUsesFiltering\CoversTest::testOne) |
| 37 | +Test Finished (PHPUnit\TestFixture\CoversUsesFiltering\CoversTest::testOne) |
| 38 | +Test Suite Finished (PHPUnit\TestFixture\CoversUsesFiltering\CoversTest, 1 test) |
| 39 | +Test Suite Finished (CLI Arguments, 1 test) |
| 40 | +Test Runner Execution Finished |
| 41 | +Test Runner Finished |
| 42 | +PHPUnit Finished (Shell Exit Code: 0) |
0 commit comments