コード例 #1
0
ファイル: DojoTest.php プロジェクト: jsnshrmn/Suma
 public function testShouldNotAllowSpecifyingDuplicateOnLoadActions()
 {
     $this->helper->addOnLoad('foo');
     $this->helper->addOnLoad('foo');
     $onLoad = $this->helper->getOnLoadActions();
     $this->assertTrue(is_array($onLoad));
     $this->assertEquals(1, count($onLoad));
     $action = array_shift($onLoad);
     $this->assertEquals('foo', $action);
 }