src/main/php/Verification.php
public function wasNeverCalled(): bool
    {
        if (count($this->invocations) > 0) {
            throw new CallAmountViolation(sprintf(
                    '%s was not expected to be called,'
                    . ' but actually called %d time(s).',
                    $this->invocations->name(),
                    count($this->invocations)
            ));
        }

        return true;
    }
public function wasNeverCalled(): bool
    {
        if (count($this->invocations) > 0) {
            throw new CallAmountViolation(sprintf(
                    '%s was not expected to be called,'
                    . ' but actually called %d time(s).',
                    $this->invocations->name(),
                    count($this->invocations)
            ));
        }

        return true;
    }
public function wasNeverCalled ( ) : bool { if ( count ( $ this -> invocations ) > 0 ) { throw new CallAmountViolation ( sprintf ( '%s was not expected to be called,' . ' but actually called %d time(s).' , $ this -> invocations -> name ( ) , count ( $ this -> invocations ) ) ) ; } return true ; }
verifies that the method on the class was never called

@api
@return  bool
@throws  \bovigo\callmap\CallAmountViolation
verifies that the method on the class was never called