public function DoubleComparatorTest::assertEqualsSucceedsProvider in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/sebastian/comparator/tests/DoubleComparatorTest.php \SebastianBergmann\Comparator\DoubleComparatorTest::assertEqualsSucceedsProvider()
File
- vendor/
sebastian/ comparator/ tests/ DoubleComparatorTest.php, line 50
Class
- DoubleComparatorTest
- @coversDefaultClass SebastianBergmann\Comparator\DoubleComparator
Namespace
SebastianBergmann\ComparatorCode
public function assertEqualsSucceedsProvider() {
return array(
array(
2.3,
2.3,
),
array(
'2.3',
2.3,
),
array(
5.0,
5,
),
array(
5,
5.0,
),
array(
5.0,
'5',
),
array(
1200.0,
1200,
),
array(
2.3,
2.5,
0.5,
),
array(
3,
3.05,
0.05,
),
array(
1200.0,
1201,
1,
),
array(
(string) (1 / 3),
1 - 2 / 3,
),
array(
1 / 3,
(string) (1 - 2 / 3),
),
);
}