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