Skip to content

Commit

Permalink
di test
Browse files Browse the repository at this point in the history
  • Loading branch information
goetas committed Jan 3, 2021
1 parent d850dbf commit c54c21c
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/DependencyInjection/ConfigurationTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

declare(strict_types=1);

namespace GoetasWebservices\SoapServices\SoapServer\Tests\DependencyInjection;

use GoetasWebservices\SoapServices\SoapServer\Builder\SoapContainerBuilder;
use PHPUnit\Framework\TestCase;

class ConfigurationTest extends TestCase
{
public function testDI(): void
{
$builder = new SoapContainerBuilder(__DIR__ . '/../Fixtures/Soap/config.yml');
$debugContainer = $builder->getDebugContainer();

$tempDir = sys_get_temp_dir();

$builder->dumpContainerForProd($tempDir, $debugContainer);
$this->assertFileExists($tempDir . '/SoapContainer.php');
}
}

0 comments on commit c54c21c

Please sign in to comment.