function it_should_call_check_size_when_before_specification_runs(SpecificationEvent $specificationEvent, Detector $detector, Params $params, Reporter $reporter) { $this->performBrobdingnagian($specificationEvent, $params, $reporter); $detector->analyse($specificationEvent, $params, $reporter)->shouldHaveBeenCalled(); }
/** * @param SpecificationEvent $specificationEvent */ public function performBrobdingnagian(SpecificationEvent $specificationEvent) { $this->detector->analyse($specificationEvent, $this->params, $this->reporter); }