Skip to content

Commit ca4db79

Browse files
Change message
1 parent 856a332 commit ca4db79

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/Framework/TestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2339,7 +2339,7 @@ private function verifyErrorLogExpectation(): void
23392339
{
23402340
if ($this->errorLogCapture === false) {
23412341
if ($this->expectErrorLog) {
2342-
$this->markTestIncomplete('Could not create writable error_log file.');
2342+
$this->markTestIncomplete('Could not create writable file for error_log()');
23432343
}
23442344

23452345
return;
@@ -2348,7 +2348,7 @@ private function verifyErrorLogExpectation(): void
23482348
$errorLogOutput = stream_get_contents($this->errorLogCapture);
23492349

23502350
if ($this->expectErrorLog) {
2351-
$this->assertNotEmpty($errorLogOutput, 'Test did not call error_log().');
2351+
$this->assertNotEmpty($errorLogOutput, 'error_log() was not called');
23522352

23532353
return;
23542354
}

tests/end-to-end/generic/expect-error-log-fail-with-open_basedir.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Test Suite Started (PHPUnit\TestFixture\ExpectNoErrorLog\ExpectErrorLogFailTest,
3434
Test Preparation Started (PHPUnit\TestFixture\ExpectNoErrorLog\ExpectErrorLogFailTest::testOne)
3535
Test Prepared (PHPUnit\TestFixture\ExpectNoErrorLog\ExpectErrorLogFailTest::testOne)
3636
Test Marked Incomplete (PHPUnit\TestFixture\ExpectNoErrorLog\ExpectErrorLogFailTest::testOne)
37-
Could not create writable error_log file.
37+
Could not create writable file for error_log()
3838
Test Finished (PHPUnit\TestFixture\ExpectNoErrorLog\ExpectErrorLogFailTest::testOne)
3939
Test Suite Finished (PHPUnit\TestFixture\ExpectNoErrorLog\ExpectErrorLogFailTest, 1 test)
4040
Test Runner Execution Finished

tests/end-to-end/generic/expect-error-log-fail.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Test Suite Started (PHPUnit\TestFixture\ExpectNoErrorLog\ExpectErrorLogFailTest,
2222
Test Preparation Started (PHPUnit\TestFixture\ExpectNoErrorLog\ExpectErrorLogFailTest::testOne)
2323
Test Prepared (PHPUnit\TestFixture\ExpectNoErrorLog\ExpectErrorLogFailTest::testOne)
2424
Test Failed (PHPUnit\TestFixture\ExpectNoErrorLog\ExpectErrorLogFailTest::testOne)
25-
Test did not call error_log().
25+
error_log() was not called
2626
Failed asserting that a string is not empty.
2727
Test Finished (PHPUnit\TestFixture\ExpectNoErrorLog\ExpectErrorLogFailTest::testOne)
2828
Test Suite Finished (PHPUnit\TestFixture\ExpectNoErrorLog\ExpectErrorLogFailTest, 1 test)

tests/end-to-end/generic/expect-error-log-with-open_basedir.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Test Preparation Started (PHPUnit\TestFixture\ExpectErrorLog\ExpectErrorLogTest:
2525
Test Prepared (PHPUnit\TestFixture\ExpectErrorLog\ExpectErrorLogTest::testOne)
2626
logged a side effect
2727
Test Marked Incomplete (PHPUnit\TestFixture\ExpectErrorLog\ExpectErrorLogTest::testOne)
28-
Could not create writable error_log file.
28+
Could not create writable file for error_log()
2929
Test Finished (PHPUnit\TestFixture\ExpectErrorLog\ExpectErrorLogTest::testOne)
3030
Test Suite Finished (PHPUnit\TestFixture\ExpectErrorLog\ExpectErrorLogTest, 1 test)
3131
Test Runner Execution Finished

0 commit comments

Comments
 (0)