$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');