Coduo\PHPMatcher\Tests\Matcher\ArrayMatcherTest::test_error_when_path_in_nested_pattern_does_not_exist PHP Метод

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

    public function test_error_when_path_in_nested_pattern_does_not_exist()
    {
        $array = array('foo' => array('bar' => array('baz' => 'bar value')));
        $pattern = array('foo' => array('bar' => array('faz' => 'faz value')));
        $this->assertFalse($this->matcher->match($array, $pattern));
        $this->assertEquals($this->matcher->getError(), 'There is no element under path [foo][bar][baz] in pattern.');
    }