DIContainer/tests/unit/autoload/functions_oxDICTest.php

56 lignes
1.3 KiB
PHP

<?php
/**
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* https://www.d3data.de
*
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
* @author D3 Data Development - Daniel Seifert <support@shopmodule.com>
* @link https://www.oxidmodule.com
*/
declare(strict_types=1);
namespace D3\DIContainerHandler\tests\autoload;
use D3\DIContainerHandler\d3DicException;
use D3\TestingTools\Development\CanAccessRestricted;
use Exception;
use PHPUnit\Framework\TestCase;
use Symfony\Component\DependencyInjection\ContainerBuilder;
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
*/
public function d3GetOxidDICTest(): void
{
error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING);
$this->assertInstanceOf(
ContainerBuilder::class,
d3GetOxidDIC()
);
}
}