function it_setReturnType_sets_return_type() { $returnType = 'string'; $this->setReturnType($returnType); $this->hasReturnType()->shouldReturn(true); $this->getReturnType()->shouldReturn($returnType); }