/** * Test GET_PATHS * * @return void */ public function testGetPaths() { $response = "OK path2=http://127.0.0.1:7500/dev1/0/000/435/0000435316.fid&path1=http://127.0.0.1:7500/dev2/0/000/435/0000435316.fid&paths=2"; $expected = array('path2' => 'http://127.0.0.1:7500/dev1/0/000/435/0000435316.fid', 'path1' => 'http://127.0.0.1:7500/dev2/0/000/435/0000435316.fid'); $this->object->expects($this->any())->method('socketRead')->will($this->returnValue($response)); $this->assertSame($expected, $this->object->getPaths('somekey')); }