Exemplo n.º 1
0
 public function testMultisortChained()
 {
     $input1 = [100, 1, 10, 1000];
     $input2 = [1, 3, 2, 4];
     $this->assertEquals(3, Arrgh::chain($input1)->multisort($input2)->pop()->shift());
 }
Exemplo n.º 2
0
 public function testArrghInput()
 {
     $arr_inner = new Arrgh([1, 2, 3]);
     $arr_out = new Arrgh($arr_inner);
     $this->assertEquals([1, 2, 3], $arr_out->toArray());
 }