public function ScalarComparatorTest::assertEqualsFailsProvider in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/sebastian/comparator/tests/ScalarComparatorTest.php \SebastianBergmann\Comparator\ScalarComparatorTest::assertEqualsFailsProvider()
File
- vendor/
sebastian/ comparator/ tests/ ScalarComparatorTest.php, line 81
Class
- ScalarComparatorTest
- @coversDefaultClass SebastianBergmann\Comparator\ScalarComparator
Namespace
SebastianBergmann\ComparatorCode
public function assertEqualsFailsProvider() {
$stringException = 'Failed asserting that two strings are equal.';
$otherException = 'matches expected';
return array(
array(
"string",
"other string",
$stringException,
),
array(
"string",
"STRING",
$stringException,
),
array(
"STRING",
"string",
$stringException,
),
array(
"string",
"other string",
$stringException,
),
// https://github.com/sebastianbergmann/phpunit/issues/1023
array(
'9E6666666',
'9E7777777',
$stringException,
),
array(
new ClassWithToString(),
"does not match",
$otherException,
),
array(
"does not match",
new ClassWithToString(),
$otherException,
),
array(
0,
'Foobar',
$otherException,
),
array(
'Foobar',
0,
$otherException,
),
array(
"10",
25,
$otherException,
),
array(
"1",
false,
$otherException,
),
array(
"",
true,
$otherException,
),
array(
false,
true,
$otherException,
),
array(
true,
false,
$otherException,
),
array(
null,
true,
$otherException,
),
array(
0,
true,
$otherException,
),
);
}