2024-01-31 19:24:51 +01:00
|
|
|
<?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;
|
|
|
|
|
2024-05-26 00:14:19 +02: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;
|
|
|
|
|
2024-05-26 00:14:19 +02:00
|
|
|
/**
|
|
|
|
* @test
|
|
|
|
* @throws Exception
|
2024-05-27 13:41:52 +02:00
|
|
|
* @covers ::d3GetOxidDIC_withExceptions()
|
2024-05-26 00:14:19 +02:00
|
|
|
*/
|
|
|
|
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
|
|
|
}
|