parent
5f65190572
commit
c2ed845163
@ -1,29 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace TestConfig;
|
|
||||||
|
|
||||||
use PHPUnit\Framework\TestCase;
|
|
||||||
use Config\Autoload;
|
|
||||||
use RuntimeException;
|
|
||||||
|
|
||||||
class AutoloadTest extends TestCase
|
|
||||||
{
|
|
||||||
public function testCharger()
|
|
||||||
{
|
|
||||||
$this->expectException(RuntimeException::class);
|
|
||||||
$this->expectExceptionMessage('Config\Autoload is already started');
|
|
||||||
|
|
||||||
Autoload::charger();
|
|
||||||
Autoload::charger();
|
|
||||||
}
|
|
||||||
|
|
||||||
public function testShutDown()
|
|
||||||
{
|
|
||||||
Autoload::shutDown();
|
|
||||||
Autoload::charger();
|
|
||||||
Autoload::shutDown();
|
|
||||||
|
|
||||||
$this->assertNull(Autoload::getInstance());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue