Flow\JSONPath\Test\JSONPathArrayAccessTest::testDifferentStylesOfAccess PHP Méthode

testDifferentStylesOfAccess() public méthode

    public function testDifferentStylesOfAccess()
    {
        $data = $this->exampleData(rand(0, 1));
        $league = new JSONPath($data);
        $conferences = $league->conferences;
        $firstConference = $league->conferences[0];
        $this->assertEquals('Western Conference', $firstConference->name);
    }