Add vendor and .env to make usable

This commit is contained in:
KodeStar
2018-02-01 20:01:12 +00:00
parent 0b6fc89e10
commit c3b571724b
6392 changed files with 700972 additions and 2 deletions

View File

@@ -0,0 +1,29 @@
<?php
namespace Symfony\Component\HttpKernel\Tests\Exception;
use Symfony\Component\HttpKernel\Exception\ServiceUnavailableHttpException;
class ServiceUnavailableHttpExceptionTest extends HttpExceptionTest
{
public function testHeadersDefaultRetryAfter()
{
$exception = new ServiceUnavailableHttpException(10);
$this->assertSame(array('Retry-After' => 10), $exception->getHeaders());
}
/**
* @dataProvider headerDataProvider
*/
public function testHeadersSetter($headers)
{
$exception = new ServiceUnavailableHttpException(10);
$exception->setHeaders($headers);
$this->assertSame($headers, $exception->getHeaders());
}
protected function createException()
{
return new ServiceUnavailableHttpException();
}
}