Skip to content

Commit

Permalink
[HttpFoundation] fixed a unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Aug 14, 2011
1 parent 5d4b8a7 commit 0b5d87d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions tests/Symfony/Tests/Component/HttpFoundation/ResponseTest.php
Expand Up @@ -184,9 +184,6 @@ public function testDefaultContentType()
->method('set')
->with('Content-Type', 'text/html; charset=UTF-8');
$headerMock->expects($this->at(1))
->method('set')
->with('Content-Length', '3');
$headerMock->expects($this->at(2))
->method('set')
->with('Content-Type', 'text/html; charset=Foo');

Expand Down
Expand Up @@ -100,7 +100,6 @@ public function testRespondsWith304WhenIfModifiedSinceMatchesLastModified()

$this->assertHttpKernelIsCalled();
$this->assertEquals(304, $this->response->getStatusCode());
$this->assertSame(0, $this->response->headers->get('Content-Length'));
$this->assertEquals('text/html; charset=UTF-8', $this->response->headers->get('Content-Type'));
$this->assertEmpty($this->response->getContent());
$this->assertTraceContains('miss');
Expand All @@ -114,7 +113,6 @@ public function testRespondsWith304WhenIfNoneMatchMatchesETag()

$this->assertHttpKernelIsCalled();
$this->assertEquals(304, $this->response->getStatusCode());
$this->assertSame(0, $this->response->headers->get('Content-Length'));
$this->assertEquals('text/html; charset=UTF-8', $this->response->headers->get('Content-Type'));
$this->assertTrue($this->response->headers->has('ETag'));
$this->assertEmpty($this->response->getContent());
Expand Down

0 comments on commit 0b5d87d

Please sign in to comment.