Merge pull request #3238 from mparkhill/3.1

FIX declarations matching PHPUnit_Framework_Assert
This commit is contained in:
Simon Welsh 2014-08-07 21:30:04 +10:00
commit 61395b5618

View File

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