Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/DigitsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ class DigitsTest extends \PHPUnit_Framework_TestCase
*/
public function setUp()
{
if (null === self::$_unicodeEnabled) {
self::$_unicodeEnabled = (@preg_match('/\pL/u', 'a')) ? true : false;
if (null === static::$_unicodeEnabled) {
static::$_unicodeEnabled = (@preg_match('/\pL/u', 'a')) ? true : false;
}
}

Expand All @@ -49,7 +49,7 @@ public function testBasic()
{
$filter = new DigitsFilter();

if (self::$_unicodeEnabled && extension_loaded('mbstring')) {
if (static::$_unicodeEnabled && extension_loaded('mbstring')) {
// Filter for the value with mbstring
/**
* The first element of $valuesExpected contains multibyte digit characters.
Expand Down

0 comments on commit 6cc4c97

Please sign in to comment.