Codesleeve\Stapler\Factories\FileTest::it_should_be_able_to_build_a_stapler_uploaded_file_object_from_an_array PHP Метод

it_should_be_able_to_build_a_stapler_uploaded_file_object_from_an_array() публичный Метод

Test that the file factory can create a Codesleeve\Stapler\UploadedFile object from an array.
    public function it_should_be_able_to_build_a_stapler_uploaded_file_object_from_an_array()
    {
        $fileData = ['tmp_name' => __DIR__ . '/../Fixtures/empty.gif', 'name' => 'empty.gif', 'type' => null, 'size' => null, 'error' => null];
        $uploadedFile = File::create($fileData, true);
        $this->assertInstanceOf('Codesleeve\\Stapler\\Interfaces\\File', $uploadedFile);
    }