/** * @expectedException InvalidArgumentException */ public function testSetAccess() { $property = new PhpProperty('Foo'); $property->setAccess(' public'); }