protected function Framework_AssertTest::sameValues in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpunit/phpunit/tests/Framework/AssertTest.php \Framework_AssertTest::sameValues()
2 calls to Framework_AssertTest::sameValues()
- Framework_AssertTest::equalProvider in vendor/
phpunit/ phpunit/ tests/ Framework/ AssertTest.php - Framework_AssertTest::sameProvider in vendor/
phpunit/ phpunit/ tests/ Framework/ AssertTest.php
File
- vendor/
phpunit/ phpunit/ tests/ Framework/ AssertTest.php, line 663
Class
- Framework_AssertTest
- @since Class available since Release 2.0.0
Code
protected function sameValues() {
$object = new SampleClass(4, 8, 15);
// cannot use $filesDirectory, because neither setUp() nor
// setUpBeforeClass() are executed before the data providers
$file = dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'foo.xml';
$resource = fopen($file, 'r');
return array(
// null
array(
null,
null,
),
// strings
array(
'a',
'a',
),
// integers
array(
0,
0,
),
// floats
array(
2.3,
2.3,
),
array(
1 / 3,
1 - 2 / 3,
),
array(
log(0),
log(0),
),
// arrays
array(
array(),
array(),
),
array(
array(
0 => 1,
),
array(
0 => 1,
),
),
array(
array(
0 => null,
),
array(
0 => null,
),
),
array(
array(
'a',
'b' => array(
1,
2,
),
),
array(
'a',
'b' => array(
1,
2,
),
),
),
// objects
array(
$object,
$object,
),
// resources
array(
$resource,
$resource,
),
);
}