Skip to content

Commit

Permalink
Tests of new isArabic method wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
=ahmedyaseensd committed Sep 27, 2022
1 parent a89b631 commit 7304e95
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/arPhpTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down

0 comments on commit 7304e95

Please sign in to comment.