Skip to content

Commit

Permalink
fix ViewTest::testSetHeaders
Browse files Browse the repository at this point in the history
  • Loading branch information
lsmith77 committed Sep 7, 2012
1 parent eaea57a commit 58f46e2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Tests/View/ViewTest.php
Expand Up @@ -114,9 +114,10 @@ public function testSetFormat()
public function testSetHeaders()
{
$view = new View();
$headers = array('foo' => 'bar', 'cache-control' => '');
$headers = array('foo' => 'bar');
$expected = array('foo' => array('bar'), 'cache-control' => array('no-cache'));
$view->setHeaders($headers);
$this->assertEquals($headers, $view->getHeaders());
$this->assertEquals($expected, $view->getHeaders());
}

public function testSetStatusCode()
Expand Down

0 comments on commit 58f46e2

Please sign in to comment.