예제 #1
0
 public function testMoveToBottom()
 {
     $a = ['b' => 2, 'c' => 3, 'a' => 1];
     ArrayToolkit::moveToBottom($a, 'b');
     ArrayToolkit::moveToBottom($a, 'c');
     $this->assertSame(['a' => 1, 'b' => 2, 'c' => 3], $a);
 }