VarDumperTest.php 308 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
<?php
namespace yiiunit\framework\helpers;
use \yii\helpers\VarDumper;

class VarDumperTest extends \yii\test\TestCase
{
	public function testDumpObject()
	{
		$obj = new \StdClass();
Carsten Brandt committed
10
		ob_start();
11
		VarDumper::dump($obj);
Carsten Brandt committed
12 13
		$this->assertEquals("stdClass#1\n(\n)", ob_get_contents());
		ob_end_clean();
14
	}
Zander Baldwin committed
15
}