Skip to content

Commit ed401c5

Browse files
committed
phpunit
1 parent 885ff38 commit ed401c5

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
"php": "^5.6|^7.0|^7.1"
1919
},
2020
"require-dev": {
21-
"phpunit/phpunit": "~5.6",
22-
"satooshi/php-coveralls": "^1.0"
21+
"satooshi/php-coveralls": "^1.0",
22+
"phpunit/phpunit": "^5.7"
2323
},
2424
"autoload": {
2525
"psr-4": {

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/DetectLanguageTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,11 @@ public function can_detect_buhid()
113113
$this->assertTrue(StringScript::isBuhid('ᝃ ᝄ ᝅ ᝆ ᝇ ᝈ ᝉ ᝊ ᝋ ᝌ ᝍ ᝎ ᝏ ᝐ ᝑ'));
114114
$this->assertFalse(StringScript::isBuhid('Hello world, and welcome this package.'));
115115
}
116+
117+
/** @test */
118+
public function can_detect_devanagari()
119+
{
120+
$this->assertTrue(StringScript::isDevanagari('ᝃ ᝄ ᝅ ᝆ ᝇ ᝈ ᝉ ᝊ ᝋ ᝌ ᝍ ᝎ ᝏ ᝐ ᝑ'));
121+
$this->assertFalse(StringScript::isDevanagari('Hello world, and welcome this package.'));
122+
}
116123
}

0 commit comments

Comments
 (0)