/** * @expectedException \InvalidArgumentException * @expectedExceptionMessage Unknown property unknown given. */ public function testInvalidProperty() { $def = new Definition(); $def->setProperties(['unknown' => 'value']); }