"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "public_html/lists/base/vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Tests/DependencyInjection/CompilerPass/RegisterMappingsPassTest.php" between
phplist-3.4.5.tgz and phplist-3.4.6.tgz

About: phpList is a one-way email announcement delivery system for newsletters, publicity lists, notifications, and many other uses (requires PHP and MySQL).

RegisterMappingsPassTest.php  (phplist-3.4.5.tgz):RegisterMappingsPassTest.php  (phplist-3.4.6.tgz)
skipping to change at line 12 skipping to change at line 12
namespace Symfony\Bridge\Doctrine\Tests\DependencyInjection\CompilerPass; namespace Symfony\Bridge\Doctrine\Tests\DependencyInjection\CompilerPass;
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
use Symfony\Bridge\Doctrine\DependencyInjection\CompilerPass\RegisterMappingsPas s; use Symfony\Bridge\Doctrine\DependencyInjection\CompilerPass\RegisterMappingsPas s;
use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition; use Symfony\Component\DependencyInjection\Definition;
class RegisterMappingsPassTest extends TestCase class RegisterMappingsPassTest extends TestCase
{ {
/**
* @expectedException \InvalidArgumentException
* @expectedExceptionMessageould Could not find the manager name parameter i
n the container. Tried the following parameter names: "manager.param.one", "mana
ger.param.two"
*/
public function testNoDriverParmeterException() public function testNoDriverParmeterException()
{ {
$this->expectException('InvalidArgumentException');
$this->expectExceptionMessage('Could not find the manager name parameter
in the container. Tried the following parameter names: "manager.param.one", "ma
nager.param.two"');
$container = $this->createBuilder(); $container = $this->createBuilder();
$this->process($container, [ $this->process($container, [
'manager.param.one', 'manager.param.one',
'manager.param.two', 'manager.param.two',
]); ]);
} }
private function process(ContainerBuilder $container, array $managerParamNam es) private function process(ContainerBuilder $container, array $managerParamNam es)
{ {
$pass = new ConcreteMappingsPass( $pass = new ConcreteMappingsPass(
 End of changes. 2 change blocks. 
6 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)