JBZoo\PHPUnit\ArrayTest::testSortByArray PHP Метод

testSortByArray() публичный Метод

public testSortByArray ( )
    public function testSortByArray()
    {
        $array = array('address' => '1', 'name' => '2', 'dob' => '3', 'no_sort_1' => '4', 'no_sort_2' => '5');
        is(array('dob' => '3', 'name' => '2', 'address' => '1', 'no_sort_1' => '4', 'no_sort_2' => '5'), Arr::sortByArray($array, array('dob', 'name', 'address')));
    }