public function ContextTest::valuesProvider in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/sebastian/recursion-context/tests/ContextTest.php \SebastianBergmann\RecursionContext\ContextTest::valuesProvider()
File
- vendor/
sebastian/ recursion-context/ tests/ ContextTest.php, line 43
Class
Namespace
SebastianBergmann\RecursionContextCode
public function valuesProvider() {
$obj2 = new \stdClass();
$obj2->foo = 'bar';
$obj3 = (object) array(
1,
2,
"Test\r\n",
4,
5,
6,
7,
8,
);
$obj = new \stdClass();
//@codingStandardsIgnoreStart
$obj->null = null;
//@codingStandardsIgnoreEnd
$obj->boolean = true;
$obj->integer = 1;
$obj->double = 1.2;
$obj->string = '1';
$obj->text = "this\nis\na\nvery\nvery\nvery\nvery\nvery\nvery\rlong\n\rtext";
$obj->object = $obj2;
$obj->objectagain = $obj2;
$obj->array = array(
'foo' => 'bar',
);
$obj->array2 = array(
1,
2,
3,
4,
5,
6,
);
$obj->array3 = array(
$obj,
$obj2,
$obj3,
);
$obj->self = $obj;
$storage = new \SplObjectStorage();
$storage
->attach($obj2);
$storage->foo = $obj2;
return array(
array(
$obj,
spl_object_hash($obj),
),
array(
$obj2,
spl_object_hash($obj2),
),
array(
$obj3,
spl_object_hash($obj3),
),
array(
$storage,
spl_object_hash($storage),
),
array(
$obj->array,
0,
),
array(
$obj->array2,
0,
),
array(
$obj->array3,
0,
),
);
}