public function testFetchFeedResult() { resetLog(); $this->object->setMock(true, 'fetchFeedResult.xml'); $this->assertFalse($this->object->fetchFeedResult()); //no ID set yet $this->object->setFeedId(77); $ok = $this->object->fetchFeedResult(); $this->assertNull($ok); $check = parseLog(); $this->assertEquals('Single Mock File set: fetchFeedResult.xml', $check[1]); $this->assertEquals('Feed Submission ID must be set in order to fetch it!', $check[2]); $this->assertEquals('Fetched Mock File: mock/fetchFeedResult.xml', $check[3]); return $this->object; }