From 6e5e5e055fe67dfa091f165ea13c26d31d6edcdd Mon Sep 17 00:00:00 2001 From: gotterdemarung Date: Tue, 10 Dec 2013 22:19:42 +0200 Subject: [PATCH] primitives check in constructor & toString --- tests/Stringy/StringyTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Stringy/StringyTest.php b/tests/Stringy/StringyTest.php index 51c7e65..6283f2e 100644 --- a/tests/Stringy/StringyTest.php +++ b/tests/Stringy/StringyTest.php @@ -23,6 +23,7 @@ class StringyTestCase extends CommonTest $this->assertSame('1', (string) new S(true)); $this->assertSame('-9', (string) new S(-9)); $this->assertSame('1.18', (string) new S(1.18)); + $this->assertSame(' string ', (string) new S(' string ')); } /** @@ -40,7 +41,7 @@ class StringyTestCase extends CommonTest public function testToStringResource() { (string) new S(fopen('php://stdout', 'w')); - $this->fail('Expecting exception on receiving array as constructor argument'); + $this->fail('Expecting exception on receiving resource as constructor argument'); }