public function removeAny($method)
    {
        $keys = [];

        foreach ($this->expectations as $k => $expectation) {
            if ($expectation->getMethod() == $method) {
                $keys[] = $k;
            }
        }

        foreach ($keys as $key) {
            unset($this->expectations[$key]);
        }

        return $this;
    }