1
0
mirror of https://github.com/danielstjules/Stringy.git synced 2025-08-13 16:53:59 +02:00

Added simple constructor test

This commit is contained in:
Lucas
2013-08-24 14:32:43 +02:00
parent 3d81e2ef70
commit 660b1d6de8

View File

@@ -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');