public function DebugTest::testExportArrayTraversable in Plug 7
File
- lib/
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__);
}