public function testWithParentClass() { $this->object = new Accessor(new ExtendingObj()); $this->assertTrue($this->object->get('myProp')); }