From f528660abb6b69eaf2bb29ae7254d50b39715f43 Mon Sep 17 00:00:00 2001 From: sc0Vu Date: Wed, 7 Feb 2018 17:33:45 +0800 Subject: [PATCH] Add StringFormatter test. --- test/unit/StringFormatterTest.php | 40 +++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 test/unit/StringFormatterTest.php diff --git a/test/unit/StringFormatterTest.php b/test/unit/StringFormatterTest.php new file mode 100644 index 0000000..1a52658 --- /dev/null +++ b/test/unit/StringFormatterTest.php @@ -0,0 +1,40 @@ +formatter = new StringFormatter; + } + + /** + * testFormat + * + * @return void + */ + public function testFormat() + { + $formatter = $this->formatter; + + $str = $formatter->format(123456); + $this->assertEquals($str, '123456'); + } +} \ No newline at end of file