/** * Component constructor should accept an array of properties and * if it needs several instances of the same property it should be able to accept * an array inside of the array. */ public function testConstructorAcceptsInitializingArrayOfArrays() { $journal = new qCal_Component_Vjournal(array('attach' => array('http://www.example.com/foo/bar.mp3', 'http://www.example.com/foo/baz.mp3'))); $this->assertEqual(count($journal->getProperty('attach')), 2); }