Skip to content
This repository has been archived by the owner on May 19, 2018. It is now read-only.

Commit

Permalink
Fixed tests (for PHPUnit 4.6.*)
Browse files Browse the repository at this point in the history
  • Loading branch information
corpsee committed Jun 8, 2015
1 parent 5d7642e commit 1ec8de6
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions tests/src/ErrorHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ public function testErrorHandlerNotice()
try {
$this->throwNotice();
} catch (\ErrorException $exception) {
$this->assertEquals(E_NOTICE, $exception->getSeverity());
$this->assertEquals(__FILE__, $exception->getFile());
$this->assertRegexp('/^E_NOTICE:/', $exception->getMessage());
self::assertEquals(E_NOTICE, $exception->getSeverity());
self::assertEquals(__FILE__, $exception->getFile());
self::assertRegExp('/^E_NOTICE:/', $exception->getMessage());
}
}

Expand All @@ -24,9 +24,9 @@ public function testErrorHandlerWarning()
try {
$this->throwWarning();
} catch (\ErrorException $exception) {
$this->assertEquals(E_WARNING, $exception->getSeverity());
$this->assertEquals(__FILE__, $exception->getFile());
$this->assertRegexp('/^E_WARNING:/', $exception->getMessage());
self::assertEquals(E_WARNING, $exception->getSeverity());
self::assertEquals(__FILE__, $exception->getFile());
self::assertRegExp('/^E_WARNING:/', $exception->getMessage());
}
}

Expand All @@ -36,9 +36,9 @@ public function testErrorHandlerDeprecated()
try {
$this->throwDeprecated();
} catch (\ErrorException $exception) {
$this->assertEquals(E_DEPRECATED, $exception->getSeverity());
$this->assertEquals(__FILE__, $exception->getFile());
$this->assertRegexp('/^E_DEPRECATED:/', $exception->getMessage());
self::assertEquals(E_DEPRECATED, $exception->getSeverity());
self::assertEquals(__FILE__, $exception->getFile());
self::assertRegExp('/^E_DEPRECATED:/', $exception->getMessage());
}
}

Expand All @@ -48,9 +48,9 @@ public function testErrorHandlerStrict()
try {
$this->throwStrict();
} catch (\ErrorException $exception) {
$this->assertEquals(E_STRICT, $exception->getSeverity());
$this->assertEquals(__FILE__, $exception->getFile());
$this->assertRegexp('/^E_STRICT:/', $exception->getMessage());
self::assertEquals(E_STRICT, $exception->getSeverity());
self::assertEquals(__FILE__, $exception->getFile());
self::assertRegExp('/^E_STRICT:/', $exception->getMessage());
}
}

Expand Down

0 comments on commit 1ec8de6

Please sign in to comment.