/** * @expectedException \RuntimeException * */ public function testReadOnlyFieldGetDataNotWorking() { $ro = new ReadOnlyField(); $ro->getData(); }