Ejemplo n.º 1
0
 function testMerge()
 {
     $_FILES = $this->given;
     $this->expected['product']['id'] = '15';
     $this->expected['product']['name'] = 'test name';
     $this->assertEquals($this->expected, FilesNormalizer::merge(array('product' => array('id' => '15', 'name' => 'test name'))));
 }
Ejemplo n.º 2
0
<?php

require '../../boot.php';
if (count($_FILES)) {
    $_POST['product']['name'] = 'Test name';
    $_POST['product']['id'] = '15';
    FilesNormalizer::mergeWithPost();
    d($_POST);
}
require 'files_normalizer.html';