public function testDialogNameParsing()
 {
     $requestBuilder = $this->getMock('fajr\\libfajr\\window\\RequestBuilder', array('buildRequestData', 'getRequestUrl', 'newSerial'));
     $data = new DialogData();
     $executor = new DialogRequestExecutor($data, $requestBuilder, null, null);
     $response = file_get_contents(__DIR__ . '/testdata/vyberTerminuDialogName.dat');
     $name = $executor->parseDialogNameFromResponse($response);
     $this->assertEquals($name, "VSES206_VyberTerminuHodnoteniaDlg1");
 }
 public function testDialogNameParsing()
 {
     $requestBuilder = $this->getMock('fajr\\libfajr\\window\\RequestBuilder');
     $data = new DialogData();
     $connection = $this->getMock('fajr\\libfajr\\pub\\connection\\SimpleConnection');
     $executor = new DialogRequestExecutor($requestBuilder, $connection, $data, null, null);
     $response = file_get_contents(__DIR__ . '/testdata/vyberTerminuDialogName.dat');
     $name = $executor->parseDialogNameFromResponse($response);
     $this->assertEquals($name, "VSES206_VyberTerminuHodnoteniaDlg1");
 }