assertSame( $expected, add_magic_quotes( $test_array ) ); } /** * Data provider for test_add_magic_quotes. * * @return array[] Test parameters { * @type array $test_array Test value. * @type array $expected Expected return value. * } */ public function data_add_magic_quotes() { return array( array( array( 'sample string', 52, true, false, null, "This is a 'string'", array( 1, false, true, 'This is "another" string', ), ), array( 'sample string', 52, true, false, null, "This is a \'string\'", array( 1, false, true, 'This is \"another\" string', ), ), ), ); } }