public function getNestedExpectation() { $expectation = $this->getExpectation(); while ($expectation instanceof Decorator) { $expectation = $expectation->getExpectation(); } return $expectation; }