mirror of
https://github.com/danielstjules/Stringy.git
synced 2025-08-14 01:04:06 +02:00
Added simple constructor test
This commit is contained in:
@@ -7,6 +7,14 @@ use Stringy\Stringy as S;
|
|||||||
|
|
||||||
class StringyTestCase extends CommonTest
|
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()
|
public function testCreate()
|
||||||
{
|
{
|
||||||
$stringy = S::create('foo bar', 'UTF-8');
|
$stringy = S::create('foo bar', 'UTF-8');
|
||||||
|
Reference in New Issue
Block a user