Add coverage.xml

unit_test
dorian.hodin 2 years ago
parent 5f65190572
commit c2ed845163

@ -2,6 +2,7 @@
namespace TestBusinessClass; namespace TestBusinessClass;
use BusinessClass\BoxQuestion; use BusinessClass\BoxQuestion;
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;

@ -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…
Cancel
Save