diff --git a/tests/_files/DataProviderIssue2833/SecondTest.php b/tests/_files/DataProviderIssue2833/SecondTest.php index bbe2d10cf0f..8fa706cc677 100644 --- a/tests/_files/DataProviderIssue2833/SecondTest.php +++ b/tests/_files/DataProviderIssue2833/SecondTest.php @@ -13,7 +13,7 @@ class SecondTest extends TestCase { - const DUMMY = 'dummy'; + public const DUMMY = 'dummy'; public function testSecond(): void { diff --git a/tests/_files/ExceptionNamespaceTest.php b/tests/_files/ExceptionNamespaceTest.php index 7713a5d8540..88a7d2f31cc 100644 --- a/tests/_files/ExceptionNamespaceTest.php +++ b/tests/_files/ExceptionNamespaceTest.php @@ -16,14 +16,14 @@ class ExceptionNamespaceTest extends \PHPUnit\Framework\TestCase * * @var string */ - const ERROR_MESSAGE = 'Exception namespace message'; + public const ERROR_MESSAGE = 'Exception namespace message'; /** * Exception code * * @var int */ - const ERROR_CODE = 200; + public const ERROR_CODE = 200; /** * @expectedException Class diff --git a/tests/_files/ExceptionTest.php b/tests/_files/ExceptionTest.php index 47855f1ef7d..244a53c28d3 100644 --- a/tests/_files/ExceptionTest.php +++ b/tests/_files/ExceptionTest.php @@ -16,21 +16,21 @@ class ExceptionTest extends TestCase * * @var string */ - const ERROR_MESSAGE = 'Exception message'; + public const ERROR_MESSAGE = 'Exception message'; /** * Exception message * * @var string */ - const ERROR_MESSAGE_REGEX = '#regex#'; + public const ERROR_MESSAGE_REGEX = '#regex#'; /** * Exception code * * @var int */ - const ERROR_CODE = 500; + public const ERROR_CODE = 500; /** * @expectedException FooBarBaz diff --git a/tests/end-to-end/regression/GitHub/2724/SeparateClassRunMethodInNewProcessTest.php b/tests/end-to-end/regression/GitHub/2724/SeparateClassRunMethodInNewProcessTest.php index d76dfe07058..472c76a7358 100644 --- a/tests/end-to-end/regression/GitHub/2724/SeparateClassRunMethodInNewProcessTest.php +++ b/tests/end-to-end/regression/GitHub/2724/SeparateClassRunMethodInNewProcessTest.php @@ -13,11 +13,11 @@ */ class SeparateClassRunMethodInNewProcessTest extends PHPUnit\Framework\TestCase { - const PROCESS_ID_FILE_PATH = __DIR__ . '/parent_process_id.txt'; + public const PROCESS_ID_FILE_PATH = __DIR__ . '/parent_process_id.txt'; - const INITIAL_MASTER_PID = 0; + public const INITIAL_MASTER_PID = 0; - const INITIAL_PID1 = 1; + public const INITIAL_PID1 = 1; public static $masterPid = self::INITIAL_MASTER_PID; diff --git a/tests/end-to-end/regression/GitHub/2725/BeforeAfterClassPidTest.php b/tests/end-to-end/regression/GitHub/2725/BeforeAfterClassPidTest.php index ac8804a6c8e..dd602ea2b9f 100644 --- a/tests/end-to-end/regression/GitHub/2725/BeforeAfterClassPidTest.php +++ b/tests/end-to-end/regression/GitHub/2725/BeforeAfterClassPidTest.php @@ -16,7 +16,7 @@ */ class BeforeAfterClassPidTest extends TestCase { - const PID_VARIABLE = 'current_pid'; + public const PID_VARIABLE = 'current_pid'; /** * @beforeClass