DIContainer/tests/unit/autoload/functions_oxDICTest.php

60 regels
1.4 KiB
PHP

2024-01-31 19:24:51 +01:00
<?php
/**
2024-06-15 23:10:49 +02:00
* Copyright (c) D3 Data Development (Inh. Thomas Dartsch)
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
2024-01-31 19:24:51 +01:00
*
* https://www.d3data.de
*
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
2024-06-15 23:10:49 +02:00
* @author D3 Data Development - Daniel Seifert <info@shopmodule.com>
2024-01-31 19:24:51 +01:00
* @link https://www.oxidmodule.com
*/
declare(strict_types=1);
2024-06-16 00:01:36 +02:00
namespace D3\DIContainerHandler\tests\unit\autoload;
2024-01-31 19:24:51 +01:00
use D3\DIContainerHandler\d3DicException;
2024-01-31 21:13:53 +01:00
use D3\TestingTools\Development\CanAccessRestricted;
use Exception;
2024-01-31 19:24:51 +01:00
use PHPUnit\Framework\TestCase;
use Symfony\Component\DependencyInjection\ContainerBuilder;
class functions_oxDICTest extends TestCase
{
2024-01-31 21:13:53 +01:00
use CanAccessRestricted;
/**
* @test
* @throws Exception
2024-05-27 13:41:52 +02:00
* @covers ::d3GetOxidDIC_withExceptions()
*/
public function d3GetOxidDIC_withExceptionsTest(): void
{
error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING);
$this->assertInstanceOf(
ContainerBuilder::class,
d3GetOxidDIC_withExceptions()
);
}
2024-01-31 19:24:51 +01:00
/**
* @test
2024-01-31 21:13:53 +01:00
* @throws Exception
2024-05-27 13:41:52 +02:00
* @covers ::d3GetOxidDIC()
2024-01-31 19:24:51 +01:00
*/
public function d3GetOxidDICTest(): void
{
2024-02-19 08:36:41 +01:00
error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING);
2024-01-31 19:24:51 +01:00
$this->assertInstanceOf(
ContainerBuilder::class,
d3GetOxidDIC()
);
}
2024-01-31 21:13:53 +01:00
}