예제 #1
0
 /**
  * @covers Fisharebest\PhpPolyfill\Php54::removeMagicQuotesFromArray
  * @runInSeparateProcess
  */
 public function testHttpRemoveMagicQuotesFromArray()
 {
     $input = array(addslashes('f\\oo') => addslashes('b\'ar'), addslashes('b"az') => array(addslashes('q\\ux') => addslashes('e\'ek')));
     $expected = array('f\\oo' => 'b\'ar', 'b"az' => array('q\\ux' => 'e\'ek'));
     $output = Php54::removeMagicQuotesFromArray($input);
     $this->assertSame($expected, $output);
 }