Skip to content

Commit

Permalink
improve test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul M. Jones committed Mar 16, 2015
1 parent 4e30371 commit b2b6d17
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/unit/src/EscaperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,20 @@
*/
class EscaperTest extends \PHPUnit_Framework_TestCase
{
protected $escaper;

public function setUp()
{
$escaper_factory = new EscaperFactory;
$this->escaper = $escaper_factory->newInstance();
Escaper::setStatic($this->escaper);
}

public function test__invoke()
{
$this->assertSame($this->escaper, $this->escaper->__invoke());
}

public function testGetStatic()
{
$this->assertSame($this->escaper, Escaper::getStatic());
Expand Down

0 comments on commit b2b6d17

Please sign in to comment.