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

4 5
use yii\helpers\VarDumper;
use yiiunit\TestCase;
6

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