diff --git a/tests/end-to-end/execution-order/_files/TestWithDifferentDurations.phpunit.result.cache.txt b/tests/end-to-end/execution-order/_files/TestWithDifferentDurations.phpunit.result.cache.txt index 5cfa53d2f1d..abbaa02a4c8 100644 --- a/tests/end-to-end/execution-order/_files/TestWithDifferentDurations.phpunit.result.cache.txt +++ b/tests/end-to-end/execution-order/_files/TestWithDifferentDurations.phpunit.result.cache.txt @@ -1 +1 @@ -{"version":1,"defects":[],"times":{"TestWithDifferentDurations::testOne":1,"TestWithDifferentDurations::testTwo":0.5,"TestWithDifferentDurations::testThree":1.5}} +{"version":1,"defects":[],"times":{"PHPUnit\\TestFixture\\TestWithDifferentDurations::testOne":2.006,"PHPUnit\\TestFixture\\TestWithDifferentDurations::testTwo":0,"PHPUnit\\TestFixture\\TestWithDifferentDurations::testThree":3.001,"PHPUnit\\TestFixture\\ExampleTest::testOne":2.006,"PHPUnit\\TestFixture\\ExampleTest::testTwo":3.001,"PHPUnit\\TestFixture\\ExampleTest::testThree":0}} \ No newline at end of file diff --git a/tests/end-to-end/execution-order/_files/order-by-duration.phpunit.xml b/tests/end-to-end/execution-order/_files/order-by-duration.phpunit.xml new file mode 100644 index 00000000000..2ef82a66223 --- /dev/null +++ b/tests/end-to-end/execution-order/_files/order-by-duration.phpunit.xml @@ -0,0 +1,11 @@ + + + + ./TestWithDifferentDurations.php + + + diff --git a/tests/end-to-end/execution-order/order-by-duration-via-cli.phpt b/tests/end-to-end/execution-order/order-by-duration-via-cli.phpt new file mode 100644 index 00000000000..9c9c73aa24a --- /dev/null +++ b/tests/end-to-end/execution-order/order-by-duration-via-cli.phpt @@ -0,0 +1,50 @@ +--TEST-- +phpunit --order-by=duration ./tests/end-to-end/execution-order/_files/TestWithDifferentDurations.php +--FILE-- +run($_SERVER['argv']); +--EXPECTF-- +PHPUnit Started (PHPUnit %s using PHP %s) +Test Runner Configured +Test Suite Loaded (3 tests) +Event Facade Sealed +Test Runner Started +Test Suite Sorted +Test Runner Execution Started (3 tests) +Test Suite Started (PHPUnit\TestFixture\TestWithDifferentDurations, 3 tests) +Test Preparation Started (PHPUnit\TestFixture\TestWithDifferentDurations::testTwo) +Test Prepared (PHPUnit\TestFixture\TestWithDifferentDurations::testTwo) +Assertion Succeeded (Constraint: is true, Value: true) +Test Passed (PHPUnit\TestFixture\TestWithDifferentDurations::testTwo) +Test Finished (PHPUnit\TestFixture\TestWithDifferentDurations::testTwo) +Test Preparation Started (PHPUnit\TestFixture\TestWithDifferentDurations::testOne) +Test Prepared (PHPUnit\TestFixture\TestWithDifferentDurations::testOne) +Assertion Succeeded (Constraint: is true, Value: true) +Test Passed (PHPUnit\TestFixture\TestWithDifferentDurations::testOne) +Test Finished (PHPUnit\TestFixture\TestWithDifferentDurations::testOne) +Test Preparation Started (PHPUnit\TestFixture\TestWithDifferentDurations::testThree) +Test Prepared (PHPUnit\TestFixture\TestWithDifferentDurations::testThree) +Assertion Succeeded (Constraint: is true, Value: true) +Test Passed (PHPUnit\TestFixture\TestWithDifferentDurations::testThree) +Test Finished (PHPUnit\TestFixture\TestWithDifferentDurations::testThree) +Test Suite Finished (PHPUnit\TestFixture\TestWithDifferentDurations, 3 tests) +Test Runner Execution Finished +Test Runner Finished +PHPUnit Finished (Shell Exit Code: 0) +--CLEAN-- +run($_SERVER['argv']); +--EXPECTF-- +PHPUnit Started (PHPUnit %s using PHP %s) +Test Runner Configured +Test Suite Loaded (3 tests) +Event Facade Sealed +Test Runner Started +Test Suite Sorted +Test Runner Execution Started (3 tests) +Test Suite Started (%sorder-by-duration.phpunit.xml, 3 tests) +Test Suite Started (order-by-duration, 3 tests) +Test Suite Started (PHPUnit\TestFixture\TestWithDifferentDurations, 3 tests) +Test Preparation Started (PHPUnit\TestFixture\TestWithDifferentDurations::testTwo) +Test Prepared (PHPUnit\TestFixture\TestWithDifferentDurations::testTwo) +Assertion Succeeded (Constraint: is true, Value: true) +Test Passed (PHPUnit\TestFixture\TestWithDifferentDurations::testTwo) +Test Finished (PHPUnit\TestFixture\TestWithDifferentDurations::testTwo) +Test Preparation Started (PHPUnit\TestFixture\TestWithDifferentDurations::testOne) +Test Prepared (PHPUnit\TestFixture\TestWithDifferentDurations::testOne) +Assertion Succeeded (Constraint: is true, Value: true) +Test Passed (PHPUnit\TestFixture\TestWithDifferentDurations::testOne) +Test Finished (PHPUnit\TestFixture\TestWithDifferentDurations::testOne) +Test Preparation Started (PHPUnit\TestFixture\TestWithDifferentDurations::testThree) +Test Prepared (PHPUnit\TestFixture\TestWithDifferentDurations::testThree) +Assertion Succeeded (Constraint: is true, Value: true) +Test Passed (PHPUnit\TestFixture\TestWithDifferentDurations::testThree) +Test Finished (PHPUnit\TestFixture\TestWithDifferentDurations::testThree) +Test Suite Finished (PHPUnit\TestFixture\TestWithDifferentDurations, 3 tests) +Test Suite Finished (order-by-duration, 3 tests) +Test Suite Finished (%sorder-by-duration.phpunit.xml, 3 tests) +Test Runner Execution Finished +Test Runner Finished +PHPUnit Finished (Shell Exit Code: 0) +--CLEAN-- +