/** * Tests Arr::pluck() * * @test * @dataProvider providerPluck * @param array $array * @param string $key * @param array $expected */ public function testPluck(array $array, $key, $expected) { $array = Arr::pluck($array, $key); $this->assertSame(count($expected), count($array)); $this->assertSame($expected, $array); }