Neos\Flow\Tests\Unit\Http\RequestTest::untangleFilesArrayTransformsTheFilesSuperglobalIntoAMangeableForm PHP Method

untangleFilesArrayTransformsTheFilesSuperglobalIntoAMangeableForm() public method

    public function untangleFilesArrayTransformsTheFilesSuperglobalIntoAMangeableForm()
    {
        $convolutedFiles = ['a0' => ['name' => ['a1' => 'a.txt'], 'type' => ['a1' => 'text/plain'], 'tmp_name' => ['a1' => '/private/var/tmp/phpbqXsYt'], 'error' => ['a1' => 0], 'size' => ['a1' => 100]], 'b0' => ['name' => ['b1' => 'b.txt'], 'type' => ['b1' => 'text/plain'], 'tmp_name' => ['b1' => '/private/var/tmp/phpvZ6oUD'], 'error' => ['b1' => 0], 'size' => ['b1' => 200]], 'c' => ['name' => 'c.txt', 'type' => 'text/plain', 'tmp_name' => '/private/var/tmp/phpS9KMNw', 'error' => 0, 'size' => 300], 'd0' => ['name' => ['d1' => ['d2' => ['d3' => 'd.txt']]], 'type' => ['d1' => ['d2' => ['d3' => 'text/plain']]], 'tmp_name' => ['d1' => ['d2' => ['d3' => '/private/var/tmp/phprR3fax']]], 'error' => ['d1' => ['d2' => ['d3' => 0]]], 'size' => ['d1' => ['d2' => ['d3' => 400]]]], 'e0' => ['name' => ['e1' => ['e2' => [0 => 'e_one.txt', 1 => 'e_two.txt']]], 'type' => ['e1' => ['e2' => [0 => 'text/plain', 1 => 'text/plain']]], 'tmp_name' => ['e1' => ['e2' => [0 => '/private/var/tmp/php01fitB', 1 => '/private/var/tmp/phpUUB2cv']]], 'error' => ['e1' => ['e2' => [0 => 0, 1 => 0]]], 'size' => ['e1' => ['e2' => [0 => 510, 1 => 520]]]]];
        $untangledFiles = ['a0' => ['a1' => ['name' => 'a.txt', 'type' => 'text/plain', 'tmp_name' => '/private/var/tmp/phpbqXsYt', 'error' => 0, 'size' => 100]], 'b0' => ['b1' => ['name' => 'b.txt', 'type' => 'text/plain', 'tmp_name' => '/private/var/tmp/phpvZ6oUD', 'error' => 0, 'size' => 200]], 'c' => ['name' => 'c.txt', 'type' => 'text/plain', 'tmp_name' => '/private/var/tmp/phpS9KMNw', 'error' => 0, 'size' => 300], 'd0' => ['d1' => ['d2' => ['d3' => ['name' => 'd.txt', 'type' => 'text/plain', 'tmp_name' => '/private/var/tmp/phprR3fax', 'error' => 0, 'size' => 400]]]], 'e0' => ['e1' => ['e2' => [0 => ['name' => 'e_one.txt', 'type' => 'text/plain', 'tmp_name' => '/private/var/tmp/php01fitB', 'error' => 0, 'size' => 510], 1 => ['name' => 'e_two.txt', 'type' => 'text/plain', 'tmp_name' => '/private/var/tmp/phpUUB2cv', 'error' => 0, 'size' => 520]]]]];
        $request = $this->getAccessibleMock(Request::class, ['dummy'], [], '', false);
        $result = $request->_call('untangleFilesArray', $convolutedFiles);
        $this->assertSame($untangledFiles, $result);
    }
RequestTest