Google\Cloud\Tests\ArrayTraitTest::testPluck PHP Méthode

testPluck() public méthode

public testPluck ( )
    public function testPluck()
    {
        $value = '123';
        $key = 'key';
        $array = [$key => $value];
        $actualValue = $this->implementation->call('pluck', [$key, &$array]);
        $this->assertEquals($value, $actualValue);
        $this->assertEquals([], $array);
    }