You are here

public function DebugTest::testExportArrayTraversable in Plug 7

File

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