@@ 19-25 (lines=7) @@ | ||
16 | $this->assertInstanceOf('Stringy\Stringy', $actual); |
|
17 | } |
|
18 | ||
19 | public function testConstruct() |
|
20 | { |
|
21 | $stringy = new S('foo bar', 'UTF-8'); |
|
22 | $this->assertStringy($stringy); |
|
23 | $this->assertEquals('foo bar', (string) $stringy); |
|
24 | $this->assertEquals('UTF-8', $stringy->getEncoding()); |
|
25 | } |
|
26 | ||
27 | public function testEmptyConstruct() |
|
28 | { |
|
@@ 73-79 (lines=7) @@ | ||
70 | ); |
|
71 | } |
|
72 | ||
73 | public function testCreate() |
|
74 | { |
|
75 | $stringy = S::create('foo bar', 'UTF-8'); |
|
76 | $this->assertStringy($stringy); |
|
77 | $this->assertEquals('foo bar', (string) $stringy); |
|
78 | $this->assertEquals('UTF-8', $stringy->getEncoding()); |
|
79 | } |
|
80 | ||
81 | public function testChaining() |
|
82 | { |