/**
  * @dataProvider dataProviderResolve
  *
  * @param string $expectedInstance
  * @param string $name
  * @param string $expectedCommandText
  *
  * @return void
  */
 public function testResolve($expectedInstance, $name, $expectedCommandText)
 {
     $commandResolver = new CommandResolver();
     $command = $commandResolver->resolve($name);
     $this->assertInstanceOf($expectedInstance, $command);
     $this->assertEquals($expectedCommandText, $command->getCommandText());
 }
 /**
  * @param string $name
  * @param array $arguments
  *
  * @return Graze\Dynamark3Client\Dynamark3Response
  */
 public function __call($name, array $arguments)
 {
     $command = $this->commandResolver->resolve($name);
     $telnetResponse = $this->telnet->execute($command->getCommandText() . $command->getArgumentText($arguments), $command->getPrompt());
     return $command->parseResponse($telnetResponse);
 }