public function DebugTest::testExportArrayTraversable in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/common/tests/Doctrine/Tests/Common/Util/DebugTest.php \Doctrine\Tests\Common\Util\DebugTest::testExportArrayTraversable()
File
- vendor/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ Util/ DebugTest.php, line 28
Class
Namespace
Doctrine\Tests\Common\UtilCode
public function testExportArrayTraversable() {
$obj = new \ArrayObject(array(
'foobar',
));
$var = Debug::export($obj, 2);
$this
->assertContains('foobar', $var->__STORAGE__);
$it = new \ArrayIterator(array(
'foobar',
));
$var = Debug::export($it, 5);
$this
->assertContains('foobar', $var->__STORAGE__);
}