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);
    }