private function HttpFoundationFactoryTest::callCreateUploadedFile in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/psr-http-message-bridge/Tests/Factory/HttpFoundationFactoryTest.php \Symfony\Bridge\PsrHttpMessage\Tests\Factory\HttpFoundationFactoryTest::callCreateUploadedFile()
2 calls to HttpFoundationFactoryTest::callCreateUploadedFile()
- HttpFoundationFactoryTest::testCreateUploadedFile in vendor/
symfony/ psr-http-message-bridge/ Tests/ Factory/ HttpFoundationFactoryTest.php - HttpFoundationFactoryTest::testCreateUploadedFileWithError in vendor/
symfony/ psr-http-message-bridge/ Tests/ Factory/ HttpFoundationFactoryTest.php - @expectedException \Symfony\Component\HttpFoundation\File\Exception\FileException @expectedExceptionMessage The file "e" could not be written on disk.
File
- vendor/
symfony/ psr-http-message-bridge/ Tests/ Factory/ HttpFoundationFactoryTest.php, line 157
Class
- HttpFoundationFactoryTest
- @author Kévin Dunglas <dunglas@gmail.com>
Namespace
Symfony\Bridge\PsrHttpMessage\Tests\FactoryCode
private function callCreateUploadedFile(UploadedFileInterface $uploadedFile) {
$reflection = new \ReflectionClass($this->factory);
$createUploadedFile = $reflection
->getMethod('createUploadedFile');
$createUploadedFile
->setAccessible(true);
return $createUploadedFile
->invokeArgs($this->factory, array(
$uploadedFile,
));
}