$this->assertStringStartsWith('The file "foo.xml" does not exist (in:',$e->getMessage(),'->load() throws an InvalidArgumentException if the loaded file does not exist');
$this->assertStringStartsWith('[ERROR 4] Start tag expected, \'<\' not found (in',$e->getMessage(),'->parseFile() throws an InvalidArgumentException if the loaded file is not a valid XML file');
$this->assertInstanceOf('\InvalidArgumentException',$e,'->parseFile() throws an InvalidArgumentException if the loaded file does not validate the XSD');
$this->assertStringStartsWith('[ERROR 1845] Element \'nonvalid\': No matching global declaration available for the validation root. (in',$e->getMessage(),'->parseFile() throws an InvalidArgumentException if the loaded file does not validate the XSD');
$this->assertEquals(1,count($args),'->load() references anonymous services as "normal" ones');
$this->assertEquals('Symfony\\Components\\DependencyInjection\\Reference',get_class($args[0]),'->load() converts anonymous services to references to "normal" services');
$this->assertEquals(1,count($args),'->load() references anonymous services as "normal" ones');
$this->assertEquals('Symfony\\Components\\DependencyInjection\\Reference',get_class($args[0]),'->load() converts anonymous services to references to "normal" services');
$this->assertEquals('Symfony\\Components\\DependencyInjection\\Definition',get_class($services['foo']),'->load() converts <service> element to Definition instances');
$this->assertEquals('FooClass',$services['foo']->getClass(),'->load() parses the class attribute');
$this->assertEquals('getInstance',$services['constructor']->getConstructor(),'->load() parses the constructor attribute');
$this->assertEquals('%path%/foo.php',$services['file']->getFile(),'->load() parses the file tag');
$this->assertEquals(array('foo',newReference('foo'),array(true,false)),$services['arguments']->getArguments(),'->load() parses the argument tags');
$this->assertEquals('sc_configure',$services['configurator1']->getConfigurator(),'->load() parses the configurator tag');
$this->assertEquals(array(newReference('baz'),'configure'),$services['configurator2']->getConfigurator(),'->load() parses the configurator tag');
$this->assertEquals(array('BazClass','configureStatic'),$services['configurator3']->getConfigurator(),'->load() parses the configurator tag');
$this->assertEquals(array(array('setBar',array())),$services['method_call1']->getMethodCalls(),'->load() parses the method_call tag');
$this->assertEquals(array(array('setBar',array('foo',newReference('foo'),array(true,false)))),$services['method_call2']->getMethodCalls(),'->load() parses the method_call tag');
$this->assertEquals('bar',ProjectLoader2::convertDomElementToArray($doc->documentElement),'::convertDomElementToArray() converts a \DomElement to an array');
$this->assertEquals(array('foo'=>'bar'),ProjectLoader2::convertDomElementToArray($doc->documentElement),'::convertDomElementToArray() converts a \DomElement to an array');
$this->assertEquals(array('foo'=>'bar'),ProjectLoader2::convertDomElementToArray($doc->documentElement),'::convertDomElementToArray() converts a \DomElement to an array');
$this->assertEquals(array('foo'=>array('value'=>'bar','foo'=>'bar')),ProjectLoader2::convertDomElementToArray($doc->documentElement),'::convertDomElementToArray() converts a \DomElement to an array');
$this->assertEquals(array('foo'=>null),ProjectLoader2::convertDomElementToArray($doc->documentElement),'::convertDomElementToArray() converts a \DomElement to an array');
$this->assertEquals(array('foo'=>null),ProjectLoader2::convertDomElementToArray($doc->documentElement),'::convertDomElementToArray() converts a \DomElement to an array');
$this->assertStringStartsWith('There is no extension able to load the configuration for "foobar:foobar" (in',$e->getMessage(),'->load() throws an InvalidArgumentException if the tag is not valid');
$this->assertStringStartsWith('The "foobar" tag is not valid (in',$e->getMessage(),'->load() throws an InvalidArgumentException if an extension is not loaded');