VarDumperTest.php 322 Bytes
Newer Older
1 2
<?php
namespace yiiunit\framework\helpers;
Alexander Makarov committed
3

4
use \yii\helpers\VarDumper;
Alexander Makarov committed
5
use yii\test\TestCase;
6

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