From 338f4f40635a5b9ef067666a3277c1f2f221b925 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Mon, 16 Jul 2018 14:53:48 +0000 Subject: [PATCH] verify test adding git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4303 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- Tests/verifyTest.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Tests/verifyTest.php b/Tests/verifyTest.php index 67cbe54..0498d4e 100644 --- a/Tests/verifyTest.php +++ b/Tests/verifyTest.php @@ -58,6 +58,21 @@ class test_verify extends PHPUnit_Framework_TestCase } + ///////////////// + // STRINGS // + ///////////////// + public function test_staticIsAllowedChars_1 () + { + $res = \verify::staticIsAllowedChars ("éléphant", "abcd"); + $this->assertSame ($res, false); + } + + public function test_staticIsAllowedChars_2 () + { + $res = \verify::staticIsAllowedChars ("éléphant", "anhplté"); + $this->assertSame ($res, true); + } + ///////////////// // NUMBERS // /////////////////