コード例 #1
0
ファイル: JControllerTest.php プロジェクト: realityking/JAJAX
	/**
	 * Test JController::getTasks
	 */
	public function testGetTasks()
	{
		$controller = new TestController;

		$this->assertThat(
			$controller->getTasks(),
			$this->equalTo(
				array(
					'task1', 'task2', 'display'
				)
			),
			'Line:'.__LINE__.' The available tasks should be the public tasks in the derived controller plus "display".'
		);
	}
コード例 #2
0
 /**
  * Test JController::getTasks
  *
  * @covers  JController::getTasks
  */
 public function testGetTasks()
 {
     $class = new TestController();
     // The available tasks should be the public tasks in the derived controller plus "display".
     $this->assertEquals(array('task1', 'task2', 'display'), $class->getTasks());
 }
 /**
  * @testdox  The available tasks should be the public tasks in the derived controller plus "display".
  *
  * @covers   JControllerLegacy::getTasks
  */
 public function testGetTasks()
 {
     $class = new TestController();
     $this->assertEquals(array('task1', 'task2', 'display'), $class->getTasks());
 }