public function testIdFromZapisnyListIndexParsing() { $mockConnection = $this->getMock('fajr\\libfajr\\connection\\SimpleConnection', array('request')); $response = file_get_contents(__DIR__ . '/testdata/idFromZapisnyList.dat'); $screen = new AdministraciaStudiaScreen(new NullTrace(), $mockConnection); $data = $screen->parseIdFromZapisnyListIndexFromResponse($response); $expected = array("idZapisnyList" => 138174, "idStudium" => "53043"); $this->assertEquals($expected, $data); }