mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
e535c35542
commit
f19b1ee453
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user