public function testShouldAllowAddingMultipleDijitsAtOnce() { $dijits = array('foo' => array('dojoType' => 'dijit.form.Form'), 'bar' => array('dojoType' => 'dijit.form.TextBox')); $this->helper->addDijits($dijits); $test = $this->helper->getDijits(); $this->assertTrue(is_array($test)); $this->assertEquals(2, count($test)); $keys = array(); foreach ($test as $dijit) { $keys[] = $dijit['id']; } $this->assertSame(array_keys($dijits), $keys); }