Skip to content

Commit

Permalink
Merge pull request #3238 from mparkhill/3.1
Browse files Browse the repository at this point in the history
FIX declarations matching PHPUnit_Framework_Assert
  • Loading branch information
simonwelsh committed Aug 7, 2014
2 parents 9b8d07c + 19e0d5e commit 61395b5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions dev/SapphireTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 61395b5

Please sign in to comment.