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')))); }
<?php require '../../boot.php'; if (count($_FILES)) { $_POST['product']['name'] = 'Test name'; $_POST['product']['id'] = '15'; FilesNormalizer::mergeWithPost(); d($_POST); } require 'files_normalizer.html';