protected function testedInstanceIsSet() { if ($this->test === null || $this->test->testedInstance === null) { throw new exceptions\logic('Tested instance is undefined in the test'); } return $this; }