src/Plugin/Call/Message.php
public function matchArgs($args)
    {
        if ($this->_args === null || $args === null) {
            return true;
        }
        $arg = $this->_classes['arg'];
        foreach ($this->_args as $expected) {
            $actual = array_shift($args);
            if ($expected instanceof $arg) {
                if (!$expected->match($actual)) {
                    return false;
                }
            } elseif ($actual !== $expected) {
                return false;
            }
        }
        return true;
    }
public function matchArgs($args)
    {
        if ($this->_args === null || $args === null) {
            return true;
        }
        $arg = $this->_classes['arg'];
        foreach ($this->_args as $expected) {
            $actual = array_shift($args);
            if ($expected instanceof $arg) {
                if (!$expected->match($actual)) {
                    return false;
                }
            } elseif ($actual !== $expected) {
                return false;
            }
        }
        return true;
    }
public function matchArgs ( $ args ) { if ( $ this -> _args === null || $ args === null ) { return true ; } $ arg = $ this -> _classes [ 'arg' ] ; foreach ( $ this -> _args as $ expected ) { $ actual = array_shift ( $ args ) ; if ( $ expected instanceof $ arg ) { if ( ! $ expected -> match ( $ actual ) ) { return false ; } } elseif ( $ actual !== $ expected ) { return false ; } } return true ; }
Check if this stub is compatible with passed args.

@param  array   $args The passed arguments.
@return boolean
Check if this stub is compatible with passed args .