public function testReturnsFirstIndexValueOfArray() { $expected = 'first'; $actual = Q::arrayFirst(['first', 'second', 'third']); $this->assertEquals($expected, $actual); }
function array_first(array $array) { return Q::arrayFirst($array); }