From 9c05f71b34ea890132a355d450357f50aed84914 Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Mon, 29 Jan 2024 09:07:57 +0100 Subject: [PATCH] Revert "Add test" This reverts commit 99d2828d54c99dcb4e683b04e4affd407d4db016. --- .../bootstrap.php | 19 -------- .../phpunit.xml | 11 ----- .../tests/ExampleTest.php | 23 ---------- ...otstrap-is-not-overwritten-by-phpunit.phpt | 45 ------------------- 4 files changed, 98 deletions(-) delete mode 100644 tests/end-to-end/event/_files/custom-error-handler-registered-in-bootstrap-is-not-overwritten-by-phpunit/bootstrap.php delete mode 100644 tests/end-to-end/event/_files/custom-error-handler-registered-in-bootstrap-is-not-overwritten-by-phpunit/phpunit.xml delete mode 100644 tests/end-to-end/event/_files/custom-error-handler-registered-in-bootstrap-is-not-overwritten-by-phpunit/tests/ExampleTest.php delete mode 100644 tests/end-to-end/event/custom-error-handler-registered-in-bootstrap-is-not-overwritten-by-phpunit.phpt diff --git a/tests/end-to-end/event/_files/custom-error-handler-registered-in-bootstrap-is-not-overwritten-by-phpunit/bootstrap.php b/tests/end-to-end/event/_files/custom-error-handler-registered-in-bootstrap-is-not-overwritten-by-phpunit/bootstrap.php deleted file mode 100644 index fc1f5dc3f29..00000000000 --- a/tests/end-to-end/event/_files/custom-error-handler-registered-in-bootstrap-is-not-overwritten-by-phpunit/bootstrap.php +++ /dev/null @@ -1,19 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -namespace PHPUnit\TestFixture\Event\ErrorHandlerIsNotOverwritten; - -use function set_error_handler; - -set_error_handler( - static function (int $errorNumber, string $errorString, string $errorFile, int $errorLine): bool - { - return true; - }, -); diff --git a/tests/end-to-end/event/_files/custom-error-handler-registered-in-bootstrap-is-not-overwritten-by-phpunit/phpunit.xml b/tests/end-to-end/event/_files/custom-error-handler-registered-in-bootstrap-is-not-overwritten-by-phpunit/phpunit.xml deleted file mode 100644 index 0e0f270cea9..00000000000 --- a/tests/end-to-end/event/_files/custom-error-handler-registered-in-bootstrap-is-not-overwritten-by-phpunit/phpunit.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - tests - - - diff --git a/tests/end-to-end/event/_files/custom-error-handler-registered-in-bootstrap-is-not-overwritten-by-phpunit/tests/ExampleTest.php b/tests/end-to-end/event/_files/custom-error-handler-registered-in-bootstrap-is-not-overwritten-by-phpunit/tests/ExampleTest.php deleted file mode 100644 index ca91bf78aba..00000000000 --- a/tests/end-to-end/event/_files/custom-error-handler-registered-in-bootstrap-is-not-overwritten-by-phpunit/tests/ExampleTest.php +++ /dev/null @@ -1,23 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -namespace PHPUnit\TestFixture\Event\ErrorHandlerIsNotOverwritten; - -use function trigger_error; -use PHPUnit\Framework\TestCase; - -final class ExampleTest extends TestCase -{ - public function testOne(): void - { - trigger_error('message', E_USER_DEPRECATED); - - $this->assertTrue(true); - } -} diff --git a/tests/end-to-end/event/custom-error-handler-registered-in-bootstrap-is-not-overwritten-by-phpunit.phpt b/tests/end-to-end/event/custom-error-handler-registered-in-bootstrap-is-not-overwritten-by-phpunit.phpt deleted file mode 100644 index 8dd4f227913..00000000000 --- a/tests/end-to-end/event/custom-error-handler-registered-in-bootstrap-is-not-overwritten-by-phpunit.phpt +++ /dev/null @@ -1,45 +0,0 @@ ---TEST-- -A custom error handler registered in the test suite's bootstrap script using set_error_handler() is not overwritten by PHPUnit by default ---FILE-- -run($_SERVER['argv']); - -print file_get_contents($traceFile); - -unlink($traceFile); ---EXPECTF-- -PHPUnit Started (PHPUnit %s using %s) -Test Runner Configured -Bootstrap Finished (%sbootstrap.php) -Test Suite Loaded (1 test) -Event Facade Sealed -Test Runner Started -Test Suite Sorted -Test Runner Execution Started (1 test) -Test Suite Started (%sphpunit.xml, 1 test) -Test Suite Started (default, 1 test) -Test Suite Started (PHPUnit\TestFixture\Event\ErrorHandlerIsNotOverwritten\ExampleTest, 1 test) -Test Preparation Started (PHPUnit\TestFixture\Event\ErrorHandlerIsNotOverwritten\ExampleTest::testOne) -Test Prepared (PHPUnit\TestFixture\Event\ErrorHandlerIsNotOverwritten\ExampleTest::testOne) -Test Triggered Deprecation (PHPUnit\TestFixture\Event\ErrorHandlerIsNotOverwritten\ExampleTest::testOne) -message -Test Passed (PHPUnit\TestFixture\Event\ErrorHandlerIsNotOverwritten\ExampleTest::testOne) -Test Finished (PHPUnit\TestFixture\Event\ErrorHandlerIsNotOverwritten\ExampleTest::testOne) -Test Suite Finished (PHPUnit\TestFixture\Event\ErrorHandlerIsNotOverwritten\ExampleTest, 1 test) -Test Suite Finished (default, 1 test) -Test Suite Finished (%sphpunit.xml, 1 test) -Test Runner Execution Finished -Test Runner Finished -PHPUnit Finished (Shell Exit Code: 0)