Pinq\Tests\Integration\ExpressionTrees\BasicInterpreterTest::testValueIndex PHP Метод

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

public testValueIndex ( )
    public function testValueIndex()
    {
        $valueSet = [[['prop' => null, 'foo' => null]], [['prop' => true, 'foo' => false]], [['prop' => 'fdsfdsdf', 'foo' => 'fewfew']]];
        $this->assertRecompilesCorrectly(function (array $i) {
            return $i['prop'];
        }, $valueSet);
        $this->assertRecompilesCorrectly(function (array $i) {
            return $i['foo'];
        }, $valueSet);
    }