/**
  * @requires PHP 7.0
  * @expectedException \Error
  * @expectedExceptionMessageRegExp /Cannot access private property/
  */
 public function testGetParentPrivatePropertyFromSubClass()
 {
     $this->expectOutputRegex('/Cannot access private property/');
     $obj = new SubClass();
     $obj->getParentPrivateProperty();
 }