/** * Test retrieveData with a non-existing method */ public function testRetrieveDataMethodDoesNotExist() { $dataset = new Dataset('all-posts', 'PostDAO', 'getAllPostsIDontExist', array(930061, 'twitter', 15)); $this->expectException(new Exception('PostDAO does not have a getAllPostsIDontExist method.')); $data = $dataset->retrieveDataset(); }