From 9a4ff3e2e0b6d8d40677f6daec7ffdf0223d0c90 Mon Sep 17 00:00:00 2001 From: Timothy J Warren Date: Fri, 24 Mar 2017 16:14:36 -0400 Subject: [PATCH] Add sanity check test for StringWrapper trait --- tests/StringWrapperTest.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 tests/StringWrapperTest.php diff --git a/tests/StringWrapperTest.php b/tests/StringWrapperTest.php new file mode 100644 index 0000000..7d7c17b --- /dev/null +++ b/tests/StringWrapperTest.php @@ -0,0 +1,26 @@ +wrapper = new class { + use StringWrapper; + }; + } + + public function testString() + { + $str = $this->wrapper->string('foo'); + $this->assertInstanceOf(StringType::class, $str); + } + +} \ No newline at end of file