VarDumperTest.php 321 Bytes
Newer Older
1 2 3
<?php
namespace yiiunit\framework\helpers;
use \yii\helpers\VarDumper;
Alexander Makarov committed
4
use yii\test\TestCase;
5

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