Skip to content
This repository was archived by the owner on Jan 25, 2021. It is now read-only.

Commit 7e851af

Browse files
More fixes for incompatible test cases
1 parent 0fd3dc0 commit 7e851af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/StrTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public function testRandom() {
107107
$length = 200;
108108

109109
$this->assertRegexp("/^[[:alnum:]]+$/", str::random());
110-
$this->assertInternalType('string', str::random());
110+
$this->assertTrue(is_string(str::random()));
111111
$this->assertEquals($length, strlen(str::random($length)));
112112

113113
$this->assertRegexp("/^[[:alpha:]]+$/", str::random($length, 'alpha'));
@@ -126,7 +126,7 @@ public function testQuickRandom() {
126126
$length = 200;
127127

128128
$this->assertRegexp("/^[[:alnum:]]+$/", str::quickRandom());
129-
$this->assertInternalType('string', str::quickRandom());
129+
$this->assertTrue(is_string(str::quickRandom()));
130130
$this->assertEquals($length, strlen(str::quickRandom($length)));
131131

132132
$this->assertRegexp("/^[[:alpha:]]+$/", str::quickRandom($length, 'alpha'));

0 commit comments

Comments
 (0)