for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the BenGorUser package.
*
* (c) Beñat Espiña <[email protected]>
* (c) Gorka Laucirica <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace spec\BenGorUser\SwiftMailerBridgeBundle;
use BenGorUser\SwiftMailerBridgeBundle\SwiftMailerBridgeBundle;
use PhpSpec\ObjectBehavior;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Exception\RuntimeException;
use Symfony\Component\HttpKernel\Bundle\Bundle;
/**
* Spec file of SwiftMailerBridgeBundle class.
* @author Beñat Espiña <[email protected]>
class SwiftMailerBridgeBundleSpec extends ObjectBehavior
{
function it_is_initializable()
$this->shouldHaveType(SwiftMailerBridgeBundle::class);
}
function it_extends_symfony_bundle()
$this->shouldHaveType(Bundle::class);
function it_builds_without_dependent_bundles_enabled(ContainerBuilder $container)
$this->shouldThrow(RuntimeException::class)->duringBuild($container);
function it_builds(ContainerBuilder $container)
$container->getParameter('kernel.bundles')->shouldBeCalled()->willReturn([
'BenGorUserBundle' => 'BenGorUser\\UserBundle\\BenGorUserBundle',
'SwiftmailerBundle' => 'Symfony\\Bundle\\SwiftmailerBundle\\SwiftmailerBundle',
]);
$this->build($container);