/** * Test LIST_KEYS Failure, incorrect key names in response * * @expectedException File_Mogile_Exception * @return void */ public function testListKeysFailIncorrectKeyNames() { $nextAfter = '/thumb/2/o'; $limit = 2; $response = "OK key_1=/thumb/3/o&key_3=/thumb/4/o&key_count=2&next_after=/thumb/4/o"; $expected = array('/thumb/4/o', array('/thumb/3/o', '/thumb/4/o')); $this->object->expects($this->any())->method('socketRead')->will($this->returnValue($response)); $this->assertSame($expected, $this->object->listKeys('', $nextAfter, $limit)); }