Metabor\KeyValue\CriteriaTest::testChecksIsFalseIfAtLeastOneKeyValuesIsDifferent PHP Метод

testChecksIsFalseIfAtLeastOneKeyValuesIsDifferent() публичный Метод

    public function testChecksIsFalseIfAtLeastOneKeyValuesIsDifferent()
    {
        $array = array();
        $array['Foo'] = 'bar';
        $array['bar'] = 'baz';
        $array['willFail'] = 'notThere';
        $criteria = new Criteria($array);
        $array = array();
        $array['Foo'] = 'bar';
        $array['bar'] = 'baz';
        $array['additionalKey'] = 'this is ignored';
        $keyvalue = new \ArrayIterator($array);
        $result = $criteria->check($keyvalue);
        $this->assertFalse($result);
    }