|
| 1 | +--TEST-- |
| 2 | +The right events are emitted in the right order for a test that runs code which triggers E_USER_DEPRECATED |
| 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-output'; |
| 9 | +$_SERVER['argv'][] = '--log-events-text'; |
| 10 | +$_SERVER['argv'][] = $traceFile; |
| 11 | +$_SERVER['argv'][] = '--configuration'; |
| 12 | +$_SERVER['argv'][] = __DIR__ . '/_files/self-direct-indirect'; |
| 13 | + |
| 14 | +require __DIR__ . '/../../bootstrap.php'; |
| 15 | + |
| 16 | +(new PHPUnit\TextUI\Application)->run($_SERVER['argv']); |
| 17 | + |
| 18 | +print file_get_contents($traceFile); |
| 19 | + |
| 20 | +unlink($traceFile); |
| 21 | +--EXPECTF-- |
| 22 | +PHPUnit Started (PHPUnit %s using %s) |
| 23 | +Test Runner Configured |
| 24 | +Bootstrap Finished (%sautoload.php) |
| 25 | +Test Suite Loaded (2 tests) |
| 26 | +Event Facade Sealed |
| 27 | +Test Runner Started |
| 28 | +Test Suite Sorted |
| 29 | +Test Runner Execution Started (2 tests) |
| 30 | +Test Suite Started (%sphpunit.xml, 2 tests) |
| 31 | +Test Suite Started (default, 2 tests) |
| 32 | +Test Suite Started (PHPUnit\TestFixture\SelfDirectIndirect\FirstPartyClassTest, 2 tests) |
| 33 | +Test Preparation Started (PHPUnit\TestFixture\SelfDirectIndirect\FirstPartyClassTest::testOne) |
| 34 | +Test Prepared (PHPUnit\TestFixture\SelfDirectIndirect\FirstPartyClassTest::testOne) |
| 35 | +Test Triggered Deprecation (PHPUnit\TestFixture\SelfDirectIndirect\FirstPartyClassTest::testOne, issue triggered by first-party code calling into third-party code, suppressed using operator) |
| 36 | +deprecation in third-party code |
| 37 | +Test Triggered Deprecation (PHPUnit\TestFixture\SelfDirectIndirect\FirstPartyClassTest::testOne, issue triggered by first-party code calling into first-party code, suppressed using operator) |
| 38 | +deprecation in first-party code |
| 39 | +Test Passed (PHPUnit\TestFixture\SelfDirectIndirect\FirstPartyClassTest::testOne) |
| 40 | +Test Finished (PHPUnit\TestFixture\SelfDirectIndirect\FirstPartyClassTest::testOne) |
| 41 | +Test Preparation Started (PHPUnit\TestFixture\SelfDirectIndirect\FirstPartyClassTest::testTwo) |
| 42 | +Test Prepared (PHPUnit\TestFixture\SelfDirectIndirect\FirstPartyClassTest::testTwo) |
| 43 | +Test Triggered Deprecation (PHPUnit\TestFixture\SelfDirectIndirect\FirstPartyClassTest::testTwo, issue triggered by first-party code calling into third-party code, suppressed using operator) |
| 44 | +deprecation in third-party code |
| 45 | +Test Triggered Deprecation (PHPUnit\TestFixture\SelfDirectIndirect\FirstPartyClassTest::testTwo, issue triggered by third-party code, suppressed using operator) |
| 46 | +deprecation in first-party code |
| 47 | +Test Passed (PHPUnit\TestFixture\SelfDirectIndirect\FirstPartyClassTest::testTwo) |
| 48 | +Test Finished (PHPUnit\TestFixture\SelfDirectIndirect\FirstPartyClassTest::testTwo) |
| 49 | +Test Suite Finished (PHPUnit\TestFixture\SelfDirectIndirect\FirstPartyClassTest, 2 tests) |
| 50 | +Test Suite Finished (default, 2 tests) |
| 51 | +Test Suite Finished (%sphpunit.xml, 2 tests) |
| 52 | +Test Runner Execution Finished |
| 53 | +Test Runner Finished |
| 54 | +PHPUnit Finished (Shell Exit Code: 0) |
0 commit comments