A PHP Error was encountered

Severity: 8192

Message: Function get_magic_quotes_gpc() is deprecated

Filename: core/Input.php

Line Number: 516

A PHP Error was encountered

Severity: 8192

Message: Function get_magic_quotes_gpc() is deprecated

Filename: core/Input.php

Line Number: 516

A PHP Error was encountered

Severity: Notice

Message: Trying to access array offset on value of type null

Filename: Query/Parser.php

Line Number: 2326

A PHP Error was encountered

Severity: Notice

Message: Trying to access array offset on value of type null

Filename: Query/Parser.php

Line Number: 2326

A PHP Error was encountered

Severity: Notice

Message: Trying to access array offset on value of type null

Filename: Query/Parser.php

Line Number: 2326

Diff for array_change_key_case tests versions 25 and 26 | JsPHP: a JavaScript library providing the PHP API

Diff tests: array_change_key_case

Function:
Description: Retuns an array with all string keys lowercased [or uppercased].
Version A:
Version B:
array_change_key_case tests version 25array_change_key_case tests version 26
 1function array_change_key_case_tests() {
 1function array_change_key_case_tests() {
 2
 2
 3  // API reference: http://docs.jquery.com/QUnit
 3  // API reference: http://docs.jquery.com/QUnit
 4  module( "array_change_key_case" );
 4  module( "array_change_key_case" );
 5
 5
 6  test( "array_change_key_case", function() {
 6  test( "array_change_key_case", function() {
 7
 7
 8    deepEqual( array_change_key_case( 42 ), false );
 8    deepEqual( array_change_key_case( 42 ), false );
 9    deepEqual( array_change_key_case( [ 3, 5 ] ), { 0:3, 1:5 } );
 9    deepEqual( array_change_key_case( [ 3, 5 ] ), [ 3, 5 ] );
10    deepEqual( array_change_key_case( { FuBaR: 42 } ), { fubar: 42 } );
10    deepEqual( array_change_key_case( { FuBaR: 42 } ), { fubar: 42 } );
11    deepEqual( array_change_key_case( { FuBaR: 42 }, 'CASE_LOWER' ), { fubar: 42 } );
11    deepEqual( array_change_key_case( { FuBaR: 42 }, 'CASE_LOWER' ), { fubar: 42 } );
12    deepEqual( array_change_key_case( { FuBaR: 42 }, 'CASE_UPPER' ), { FUBAR: 42 } );
12    deepEqual( array_change_key_case( { FuBaR: 42 }, 'CASE_UPPER' ), { FUBAR: 42 } );
13    deepEqual( array_change_key_case( { FuBaR: 42 }, 2 ), { FUBAR: 42 } );
13    deepEqual( array_change_key_case( { FuBaR: 42 }, 2 ), { FUBAR: 42 } );
14
14
15  } );
15  } );
16
16
17}
17}