VarDumperTest.php 385 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 15 16 17 18 19
    public function testDumpObject()
    {
        $obj = new \StdClass();
        ob_start();
        VarDumper::dump($obj);
        $this->assertEquals("stdClass#1\n(\n)", ob_get_contents());
        ob_end_clean();
    }
Zander Baldwin committed
20
}