trigger error instead of throwing exception
This commit is contained in:
@ -15,6 +15,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace D3\DIContainerHandler\tests\autoload;
|
||||
|
||||
use D3\DIContainerHandler\d3DicException;
|
||||
use D3\TestingTools\Development\CanAccessRestricted;
|
||||
use Exception;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
@ -24,6 +25,20 @@ class functions_oxDICTest extends TestCase
|
||||
{
|
||||
use CanAccessRestricted;
|
||||
|
||||
/**
|
||||
* @test
|
||||
* @throws Exception
|
||||
*/
|
||||
public function d3GetOxidDIC_withExceptionsTest(): void
|
||||
{
|
||||
error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING);
|
||||
|
||||
$this->assertInstanceOf(
|
||||
ContainerBuilder::class,
|
||||
d3GetOxidDIC_withExceptions()
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @test
|
||||
* @throws Exception
|
||||
|
Reference in New Issue
Block a user