File
- drupal/core/vendor/phpunit/phpunit/Tests/Framework/AssertTest.php, line 563
Class
- Framework_AssertTest
- @package PHPUnit
@author Sebastian Bergmann <sebastian@phpunit.de>
@author Bernhard Schussek <bschussek@2bepublished.at>
@copyright 2001-2013 Sebastian Bergmann <sebastian@phpunit.de>
@license …
Code
protected function sameValues() {
$object = new SampleClass(4, 8, 15);
$file = dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'foo.xml';
$resource = fopen($file, 'r');
return array(
array(
NULL,
NULL,
),
array(
'a',
'a',
),
array(
0,
0,
),
array(
2.3,
2.3,
),
array(
1 / 3,
1 - 2 / 3,
),
array(
log(0),
log(0),
),
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,
),
),
),
array(
$object,
$object,
),
array(
$resource,
$resource,
),
);
}