/**
  * @expectedException \BadMethodCallException
  */
 public function testInvalidCall()
 {
     $container = new ContainerReader();
     $loaded = $container->loadContainer(__DIR__ . '/containerDump.xml');
     $container->getDefinition('service.unit');
 }
 /**
  * @param Configuration $configuration
  *
  * @return ComposedResolver
  */
 private function getSymbolTableVariableResolver(Configuration $configuration)
 {
     $composedResolver = new ComposedResolver();
     $composedResolver->addResolver(new ArgumentResolver($this->symbolTable));
     $composedResolver->addResolver(new ReattachStateToVariable($this->symbolTable));
     $composedResolver->addResolver(new ReattachStateToProperty($this->symbolTable));
     $composedResolver->addResolver(new VariableAssignResolver($this->symbolTable));
     $composedResolver->addResolver(new PropertyAssignResolver($this->symbolTable));
     /* @TODO: only load the container if the project is a symfony project */
     $containerReader = new ContainerReader();
     $containerReader->loadContainer($configuration->containerPath());
     $composedResolver->addResolver(new SymfonyResolver($this->symbolTable, $containerReader));
     return $composedResolver;
 }