Beispiel #1
0
 /**
  * @expectedException  \RuntimeException
  * @group Common
  */
 public function testReadOnly()
 {
     $c = new DataContainer(array('some' => array('data' => true)));
     $this->assertTrue($c->get('some.data'));
     $this->assertFalse($c->isReadOnly());
     $c->set('some.thing', true);
     $c->setReadOnly(true);
     $c->set('some.other.thing', true);
 }