mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-16 23:48:16 +08:00

- Better names - Removed not used MySQLTestCase - Moved base testcase for DB to db namespace - Minor style fixes
17 lines
321 B
PHP
17 lines
321 B
PHP
<?php
|
|
namespace yiiunit\framework\helpers;
|
|
use \yii\helpers\VarDumper;
|
|
use yii\test\TestCase;
|
|
|
|
class VarDumperTest extends TestCase
|
|
{
|
|
public function testDumpObject()
|
|
{
|
|
$obj = new \StdClass();
|
|
ob_start();
|
|
VarDumper::dump($obj);
|
|
$this->assertEquals("stdClass#1\n(\n)", ob_get_contents());
|
|
ob_end_clean();
|
|
}
|
|
}
|