You are here

public function DebugTest::testExportArrayTraversable in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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

DebugTest

Namespace

Doctrine\Tests\Common\Util

Code

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__);
}