|
| 1 | +--TEST-- |
| 2 | +The right events are emitted in the right order for a successful test that uses a TestWith attribute which provides more values than the test method accepts |
| 3 | +--FILE-- |
| 4 | +<?php declare(strict_types=1); |
| 5 | +$_SERVER['argv'][] = '--do-not-cache-result'; |
| 6 | +$_SERVER['argv'][] = '--no-configuration'; |
| 7 | +$_SERVER['argv'][] = '--debug'; |
| 8 | +$_SERVER['argv'][] = __DIR__ . '/../../_files/Metadata/Attribute/tests/TestWithTooManyValuesTest.php'; |
| 9 | + |
| 10 | +require __DIR__ . '/../../bootstrap.php'; |
| 11 | + |
| 12 | +(new PHPUnit\TextUI\Application)->run($_SERVER['argv']); |
| 13 | +--EXPECTF-- |
| 14 | +PHPUnit Started (PHPUnit %s using %s) |
| 15 | +Test Runner Configured |
| 16 | +Event Facade Sealed |
| 17 | +Test Triggered PHPUnit Warning (PHPUnit\TestFixture\Metadata\Attribute\TestWithTooManyValuesTest::testOne) |
| 18 | +Data set #0 provided by TestWith#0 attribute has more arguments (3) than the test method accepts (2) |
| 19 | +Test Suite Loaded (1 test) |
| 20 | +Test Runner Started |
| 21 | +Test Suite Sorted |
| 22 | +Test Runner Execution Started (1 test) |
| 23 | +Test Suite Started (PHPUnit\TestFixture\Metadata\Attribute\TestWithTooManyValuesTest, 1 test) |
| 24 | +Test Suite Started (PHPUnit\TestFixture\Metadata\Attribute\TestWithTooManyValuesTest::testOne, 1 test) |
| 25 | +Test Preparation Started (PHPUnit\TestFixture\Metadata\Attribute\TestWithTooManyValuesTest::testOne#0) |
| 26 | +Test Prepared (PHPUnit\TestFixture\Metadata\Attribute\TestWithTooManyValuesTest::testOne#0) |
| 27 | +Test Passed (PHPUnit\TestFixture\Metadata\Attribute\TestWithTooManyValuesTest::testOne#0) |
| 28 | +Test Finished (PHPUnit\TestFixture\Metadata\Attribute\TestWithTooManyValuesTest::testOne#0) |
| 29 | +Test Suite Finished (PHPUnit\TestFixture\Metadata\Attribute\TestWithTooManyValuesTest::testOne, 1 test) |
| 30 | +Test Suite Finished (PHPUnit\TestFixture\Metadata\Attribute\TestWithTooManyValuesTest, 1 test) |
| 31 | +Test Runner Execution Finished |
| 32 | +Test Runner Finished |
| 33 | +PHPUnit Finished (Shell Exit Code: 1) |
0 commit comments