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