/** * Test JController::__construct * * @since 1.6 */ public function test__construct() { $controller = new TestTestController; $this->assertThat( $controller->getTasks(), $this->equalTo( array( 'task5', 'task1', 'task2', 'display' ) ), 'Line:'.__LINE__.' The available tasks should be the public tasks in _all_ the derived classes after controller plus "display".' ); }
/** * @testdox Ensure the constructor correctly initialises the class variables * * @covers JControllerLegacy::__construct */ public function testConstructer() { $controller = new TestTestController(); $this->assertEquals($controller->getTasks(), array('task5', 'task1', 'task2', 'display'), 'The available tasks should be the public tasks in _all_ the derived classes after controller plus "display".'); }