PHP code example of jdecool / atoum-symfony-di-extension
1. Go to this page and download the library: Download jdecool/atoum-symfony-di-extension library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jdecool / atoum-symfony-di-extension example snippets
namespace Vendor\MyProjectBundle\DependencyInjection\Tests\Units;
use atoum;
use Vendor\MyProjectBundle\DependencyInjection\VendorMyBundleExtension as TestedClass;
use Symfony\Component\DependencyInjection;
class VendorMyBundleExtension extends atoum
{
public function testLoad()
{
$this
->given(
$container = new DependencyInjection\ContainerBuilder(),
$testedClass = new TestedClass(),
$testedClass->load([], $container)
)
->then
->containerBuilder($container)
->hasService('myServiceName')
->hasParameter('myParameterName')
;
}
}