Parkour\TraverseTest::testFindKey PHP Метод

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

public testFindKey ( )
    public function testFindKey()
    {
        $data = [1, 2];
        $closure = $this->closure([[1, 0, false], [2, 1, true]]);
        $expected = 1;
        $this->assertEquals($expected, Traverse::findKey($data, $closure));
    }