public function testRepliesExport() { $builders = $this->buildData(); $this->simulateLogin('*****@*****.**'); $_GET['u'] = 'someuser1'; $_GET['n'] = 'twitter'; $_GET['type'] = 'replies'; $_GET['post_id'] = '1'; $controller = new ExportController(true); $this->assertTrue(isset($controller)); ob_start(); $controller->control(); $results = ob_get_contents(); ob_end_clean(); $this->assertPattern("/Reply to first post/", $results); }