コード例 #1
0
ファイル: DojoTest.php プロジェクト: jsnshrmn/Suma
 public function testRetrievingDijitsByIdShouldReturnJustParams()
 {
     $this->helper->addDijit('foo', array('dojoType' => 'dijit.form.Form'));
     $params = $this->helper->getDijit('foo');
     $this->assertTrue(is_array($params));
     $this->assertEquals(1, count($params), var_export($params, 1));
     $this->assertTrue(array_key_exists('dojoType', $params));
     $this->assertEquals('dijit.form.Form', $params['dojoType']);
 }