diff --git a/tests/Stringy/StringyTest.php b/tests/Stringy/StringyTest.php index d6ab75b..a3ef0c8 100644 --- a/tests/Stringy/StringyTest.php +++ b/tests/Stringy/StringyTest.php @@ -7,6 +7,14 @@ use Stringy\Stringy as S; class StringyTestCase extends CommonTest { + public function testConstruct() + { + $constructed = new S('foo bar', 'UTF-8'); + $this->assertInstanceOf('Stringy\Stringy', $constructed); + $created = S::create('foo bar', 'UTF-8'); + $this->assertEquals($constructed, $created); + } + public function testCreate() { $stringy = S::create('foo bar', 'UTF-8');