Mockery\Mock::shouldNotHaveReceived PHP Method

shouldNotHaveReceived() public method

public shouldNotHaveReceived ( $method, $args = null )
    public function shouldNotHaveReceived($method, $args = null)
    {
        $expectation = new \Mockery\VerificationExpectation($this, $method);
        if (null !== $args) {
            $expectation->withArgs($args);
        }
        $expectation->never();
        $director = new \Mockery\VerificationDirector($this->_mockery_getReceivedMethodCalls(), $expectation);
        $this->_mockery_expectations_count++;
        $director->verify();
        return null;
    }

Usage Example

Exemplo n.º 1
0
 public function shouldNotHaveBeenCalled()
 {
     return $this->mock->shouldNotHaveReceived(self::SPY_METHOD);
 }
All Usage Examples Of Mockery\Mock::shouldNotHaveReceived