FIX declarations matching PHPUnit_Framework_Assert

FIX for phpunit error message: ERROR [Strict Notice]: Declaration of SapphireTest::assertNotContains() should be compatible with PHPUnit_Framework_Assert::assertNotContains, and the same error for assertContains()
This commit is contained in:
Michael Parkhill 2014-06-27 16:05:40 +12:00 committed by Damian Mooyman
parent e535c35542
commit f19b1ee453

View File

@ -508,10 +508,11 @@ class SapphireTest extends PHPUnit_Framework_TestCase {
$haystack,
$message = '',
$ignoreCase = FALSE,
$checkForObjectIdentity = TRUE
$checkForObjectIdentity = TRUE,
$checkForNonObjectIdentity = false
) {
if ($haystack instanceof DBField) $haystack = (string)$haystack;
parent::assertContains($needle, $haystack, $message, $ignoreCase, $checkForObjectIdentity);
parent::assertContains($needle, $haystack, $message, $ignoreCase, $checkForObjectIdentity, $checkForNonObjectIdentity);
}
public static function assertNotContains(
@ -519,10 +520,11 @@ class SapphireTest extends PHPUnit_Framework_TestCase {
$haystack,
$message = '',
$ignoreCase = FALSE,
$checkForObjectIdentity = TRUE
$checkForObjectIdentity = TRUE,
$checkForNonObjectIdentity = false
) {
if ($haystack instanceof DBField) $haystack = (string)$haystack;
parent::assertNotContains($needle, $haystack, $message, $ignoreCase, $checkForObjectIdentity);
parent::assertNotContains($needle, $haystack, $message, $ignoreCase, $checkForObjectIdentity, $checkForNonObjectIdentity);
}
/**