Skip to content
Permalink
Browse files

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()
  • Loading branch information...
Michael Parkhill Damian Mooyman
Michael Parkhill authored and Damian Mooyman committed Jun 27, 2014
1 parent e535c35 commit f19b1ee453c602cfe819f1f53510fe887e5675d0
Showing with 6 additions and 4 deletions.
  1. +6 −4 dev/SapphireTest.php
@@ -508,21 +508,23 @@ public static function assertContains(
$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(
$needle,
$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);
}
/**

0 comments on commit f19b1ee

Please sign in to comment.
You can’t perform that action at this time.