Esempio n. 1
0
 /** @test */
 public function cannotSetAttributeOnImmutableModel()
 {
     $model = new TestModel();
     $model->makeMutable();
     $model->foo = 'bar';
     $model->makeImmutable();
     $this->setExpectedException('RuntimeException');
     $model->foo = 'bar';
 }