public function hasItems()
    {
        if (count($this->data[1]) === 0) {
            return;
        }
        foreach ($this->data[1] as $key => $value) {
            $this->failIf(
                !$this->itemExists(
                    array($this->data[0], array($key => $value))
                )
            );
        }
    }
public function hasItems()
    {
        if (count($this->data[1]) === 0) {
            return;
        }
        foreach ($this->data[1] as $key => $value) {
            $this->failIf(
                !$this->itemExists(
                    array($this->data[0], array($key => $value))
                )
            );
        }
    }
public function hasItems ( ) { if ( count ( $ this -> data [ 1 ] ) === 0 ) { return ; } foreach ( $ this -> data [ 1 ] as $ key => $ value ) { $ this -> failIf ( ! $ this -> itemExists ( array ( $ this -> data [ 0 ] , array ( $ key => $ value ) ) ) ) ; } }
Assert an array has all key and value items.

@syntax array ?:array has items ?:array
Assert an array has all key and value items .