Skip to content

Commit

Permalink
tests(kernel): add tests Tests\Kernel\InspectorTest
Browse files Browse the repository at this point in the history
  • Loading branch information
doyouhaobaby committed Oct 23, 2020
1 parent 5daf718 commit 25cae7e
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions tests/Kernel/InspectorTest.php
@@ -0,0 +1,35 @@
<?php

declare(strict_types=1);

/*
* This file is part of the ************************ package.
* _____________ _______________
* ______/ \__ _____ ____ ______ / /_ _________
* ____/ __ / / / / _ \/ __`\/ / __ \/ __ \/ __ \___
* __/ / / / /_/ / __/ / \ / /_/ / / / / /_/ /__
* \_\ \_/\____/\___/_/ / / .___/_/ /_/ .___/
* \_\ /_/_/ /_/
*
* The PHP Framework For Code Poem As Free As Wind. <Query Yet Simple>
* (c) 2010-2020 http://queryphp.com All rights reserved.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Tests\Kernel;

use Exception;
use Leevel\Kernel\Inspector;
use Tests\TestCase;

class InspectorTest extends TestCase
{
public function testBaseUse(): void
{
$e = new Exception('hello world');
$inspector = new Inspector($e);
$this->assertInternalType('array', $this->invokeTestMethod($inspector, 'getTrace', [$e]));
}
}

0 comments on commit 25cae7e

Please sign in to comment.