assertInstanceOf('Page', $this->CI->page); } public function dataSetMessage() { return [ 'info' => [ 'args' => [ 'info', 'Info test message' ], 'expected' => '
' ], 'error' => [ 'args' => [ 'error', 'Error test message' ], 'expected' => ' ' ] ]; } /** * @dataProvider dataSetMessage */ public function testSetMessage($args, $expected) { list($type, $message) = $args; $this->CI->page->set_message($type, $message); $actual = output(); $this->assertEquals($expected, $actual); } }