public function testOptionsAreInternallyConvertedToAnArrayFromTraversables() { $options = new ArrayObject(array('foo' => 'bar')); $model = new ViewModel(); $model->setOptions($options); $this->assertEquals($options->getArrayCopy(), $model->getOptions()); }
/** * @depends testSetOptionsOverwritesAllPreviouslyStored */ public function testCanClearOptions(ViewModel $model) { $model->clearOptions(); $this->assertEquals(array(), $model->getOptions()); }