From 7304e9537b952c66387b9e37e686b5a4cccf2a66 Mon Sep 17 00:00:00 2001 From: =ahmedyaseensd <7mdysn@gmail.com> Date: Tue, 27 Sep 2022 17:00:08 +0300 Subject: [PATCH] Tests of new isArabic method wrapper --- tests/arPhpTest.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/arPhpTest.php b/tests/arPhpTest.php index 3ac2d9b..c8d4786 100644 --- a/tests/arPhpTest.php +++ b/tests/arPhpTest.php @@ -20,6 +20,20 @@ protected function overrideApplicationProviders() ]; } + /** @test */ + public function it_is_not_arabic_text() + { + $output = ArPhpLaravel::isArabic("Hello there"); + + $this->assertSame(false, $output); + } + /** @test */ + public function it_is_arabic_text() + { + $output = ArPhpLaravel::isArabic("مرحبا"); + + $this->assertSame(true, $output); + } /** @test */ public function int2str_convert_number_to_text() {