|
| 1 | +--TEST-- |
| 2 | +phpunit --configuration=order-by-duration.phpunit.xml |
| 3 | +--FILE-- |
| 4 | +<?php declare(strict_types=1); |
| 5 | +$tmpResultCache = sys_get_temp_dir() . DIRECTORY_SEPARATOR . sha1(__FILE__); |
| 6 | + |
| 7 | +\copy(__DIR__ . '/_files/TestWithDifferentDurations.phpunit.result.cache.txt', $tmpResultCache); |
| 8 | + |
| 9 | +$phpunitXmlConfig = __DIR__ . '/_files/order-by-duration.phpunit.xml'; |
| 10 | + |
| 11 | +$_SERVER['argv'][] = '--do-not-cache-result'; |
| 12 | +$_SERVER['argv'][] = '--configuration=' . $phpunitXmlConfig; |
| 13 | +$_SERVER['argv'][] = '--debug'; |
| 14 | +$_SERVER['argv'][] = '--cache-result'; |
| 15 | +$_SERVER['argv'][] = '--cache-result-file=' . $tmpResultCache; |
| 16 | + |
| 17 | +require_once __DIR__ . '/../../bootstrap.php'; |
| 18 | + |
| 19 | +(new PHPUnit\TextUI\Application)->run($_SERVER['argv']); |
| 20 | +--EXPECTF-- |
| 21 | +PHPUnit Started (PHPUnit %s using PHP %s) |
| 22 | +Test Runner Configured |
| 23 | +Test Suite Loaded (3 tests) |
| 24 | +Event Facade Sealed |
| 25 | +Test Runner Started |
| 26 | +Test Suite Sorted |
| 27 | +Test Runner Execution Started (3 tests) |
| 28 | +Test Suite Started (%sorder-by-duration.phpunit.xml, 3 tests) |
| 29 | +Test Suite Started (order-by-duration, 3 tests) |
| 30 | +Test Suite Started (PHPUnit\TestFixture\TestWithDifferentDurations, 3 tests) |
| 31 | +Test Preparation Started (PHPUnit\TestFixture\TestWithDifferentDurations::testTwo) |
| 32 | +Test Prepared (PHPUnit\TestFixture\TestWithDifferentDurations::testTwo) |
| 33 | +Assertion Succeeded (Constraint: is true, Value: true) |
| 34 | +Test Passed (PHPUnit\TestFixture\TestWithDifferentDurations::testTwo) |
| 35 | +Test Finished (PHPUnit\TestFixture\TestWithDifferentDurations::testTwo) |
| 36 | +Test Preparation Started (PHPUnit\TestFixture\TestWithDifferentDurations::testOne) |
| 37 | +Test Prepared (PHPUnit\TestFixture\TestWithDifferentDurations::testOne) |
| 38 | +Assertion Succeeded (Constraint: is true, Value: true) |
| 39 | +Test Passed (PHPUnit\TestFixture\TestWithDifferentDurations::testOne) |
| 40 | +Test Finished (PHPUnit\TestFixture\TestWithDifferentDurations::testOne) |
| 41 | +Test Preparation Started (PHPUnit\TestFixture\TestWithDifferentDurations::testThree) |
| 42 | +Test Prepared (PHPUnit\TestFixture\TestWithDifferentDurations::testThree) |
| 43 | +Assertion Succeeded (Constraint: is true, Value: true) |
| 44 | +Test Passed (PHPUnit\TestFixture\TestWithDifferentDurations::testThree) |
| 45 | +Test Finished (PHPUnit\TestFixture\TestWithDifferentDurations::testThree) |
| 46 | +Test Suite Finished (PHPUnit\TestFixture\TestWithDifferentDurations, 3 tests) |
| 47 | +Test Suite Finished (order-by-duration, 3 tests) |
| 48 | +Test Suite Finished (%sorder-by-duration.phpunit.xml, 3 tests) |
| 49 | +Test Runner Execution Finished |
| 50 | +Test Runner Finished |
| 51 | +PHPUnit Finished (Shell Exit Code: 0) |
| 52 | +--CLEAN-- |
| 53 | +<?php declare(strict_types=1); |
| 54 | +unlink(sys_get_temp_dir() . DIRECTORY_SEPARATOR . sha1(__FILE__)); |
0 commit comments