public function testReadOnly2() { $m = new Model(); $m->addField('foo', ['read_only' => true, 'default' => 'abc']); $m['foo'] = 'abc'; }