Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4c38b4d

Browse filesBrowse files
committed
minor #27256 Cleanup 2 tests for the HttpException classes (ncou)
This PR was submitted for the master branch but it was merged into the 3.4 branch instead (closes #27256). Discussion ---------- Cleanup 2 tests for the HttpException classes | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #27238 | License | MIT | Doc PR | - See discussion in linked issue. Commits ------- 5516b32 Cleanup 2 tests for the HttpException classes
2 parents fb88119 + 5516b32 commit 4c38b4d
Copy full SHA for 4c38b4d

File tree

Expand file treeCollapse file tree

2 files changed

+1
-26
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+1
-26
lines changed

‎src/Symfony/Component/HttpKernel/Tests/Exception/UnprocessableEntityHttpExceptionTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpKernel/Tests/Exception/UnprocessableEntityHttpExceptionTest.php
-15Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,6 @@
66

77
class UnprocessableEntityHttpExceptionTest extends HttpExceptionTest
88
{
9-
/**
10-
* Test that setting the headers using the setter function
11-
* is working as expected.
12-
*
13-
* @param array $headers The headers to set
14-
*
15-
* @dataProvider headerDataProvider
16-
*/
17-
public function testHeadersSetter($headers)
18-
{
19-
$exception = new UnprocessableEntityHttpException(10);
20-
$exception->setHeaders($headers);
21-
$this->assertSame($headers, $exception->getHeaders());
22-
}
23-
249
protected function createException()
2510
{
2611
return new UnprocessableEntityHttpException();

‎src/Symfony/Component/HttpKernel/Tests/Exception/UnsupportedMediaTypeHttpExceptionTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpKernel/Tests/Exception/UnsupportedMediaTypeHttpExceptionTest.php
+1-11Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,7 @@
66

77
class UnsupportedMediaTypeHttpExceptionTest extends HttpExceptionTest
88
{
9-
/**
10-
* @dataProvider headerDataProvider
11-
*/
12-
public function testHeadersSetter($headers)
13-
{
14-
$exception = new UnsupportedMediaTypeHttpException(10);
15-
$exception->setHeaders($headers);
16-
$this->assertSame($headers, $exception->getHeaders());
17-
}
18-
19-
protected function createException($headers = array())
9+
protected function createException()
2010
{
2111
return new UnsupportedMediaTypeHttpException();
2212
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.