public function withNoArgs()
    {
        if ( ! in_array($this->target->type(), self::NO_ARGS_EXPECTATION_TYPES, true)) {
            throw Exception\ExpectationArgsRequired::forExpectationType($this->target);
        }

        $this->expectation = $this->expectation->withNoArgs();

        return $this;
    }
public function withNoArgs()
    {
        if ( ! in_array($this->target->type(), self::NO_ARGS_EXPECTATION_TYPES, true)) {
            throw Exception\ExpectationArgsRequired::forExpectationType($this->target);
        }

        $this->expectation = $this->expectation->withNoArgs();

        return $this;
    }
public function withNoArgs ( ) { if ( ! in_array ( $ this -> target -> type ( ) , self :: NO_ARGS_EXPECTATION_TYPES , true ) ) { throw Exception \ ExpectationArgsRequired :: forExpectationType ( $ this -> target ) ; } $ this -> expectation = $ this -> expectation -> withNoArgs ( ) ; return $ this ; }
WordPress action and filters addition and filters applying requires at least one argument,
and setting an expectation of no arguments for those triggers an error in Brain Monkey.

@return static
@throws \Brain\Monkey\Expectation\Exception\ExpectationArgsRequired
WordPress action and filters addition and filters applying requires at least one argument and setting an expectation of no arguments for those triggers an error in Brain Monkey .