From b2b6d17f997a607d71446f392857f008fe1c4157 Mon Sep 17 00:00:00 2001 From: "Paul M. Jones" Date: Mon, 16 Mar 2015 12:08:46 -0500 Subject: [PATCH] improve test coverage --- tests/unit/src/EscaperTest.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/unit/src/EscaperTest.php b/tests/unit/src/EscaperTest.php index 1d1f3ea..db8fe52 100644 --- a/tests/unit/src/EscaperTest.php +++ b/tests/unit/src/EscaperTest.php @@ -11,6 +11,8 @@ */ class EscaperTest extends \PHPUnit_Framework_TestCase { + protected $escaper; + public function setUp() { $escaper_factory = new EscaperFactory; @@ -18,6 +20,11 @@ public function setUp() Escaper::setStatic($this->escaper); } + public function test__invoke() + { + $this->assertSame($this->escaper, $this->escaper->__invoke()); + } + public function testGetStatic() { $this->assertSame($this->escaper, Escaper::getStatic());