mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
Add Cache test case
This commit is contained in:
@@ -11,15 +11,8 @@ class instanceTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertInstanceOf('\tests\thinkphp\library\traits\think\InstanceTestFather', $father);
|
||||
$this->assertEquals([], $father->options);
|
||||
|
||||
$father2 = InstanceTestFather::instance(['father']);
|
||||
$this->assertEquals([], $father2->options);
|
||||
|
||||
$father2->options = ['father'];
|
||||
$this->assertEquals(['father'], $father->options);
|
||||
|
||||
$son = InstanceTestSon::instance(['son']);
|
||||
$this->assertInstanceOf('\tests\thinkphp\library\traits\think\InstanceTestFather', $son);
|
||||
$this->assertEquals(['father'], $son->options);
|
||||
$son = InstanceTestFather::instance(['son']);
|
||||
$this->assertSame($father, $son);
|
||||
}
|
||||
|
||||
public function testCallStatic()
|
||||
|
||||
Reference in New Issue
Block a user