We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4b6ff60 + dfdf77b commit dbe372dCopy full SHA for dbe372d
tests/Support/SupportStrTest.php
@@ -105,4 +105,22 @@ public function testIs()
105
$this->assertTrue(Str::is('*/foo', 'blah/baz/foo'));
106
}
107
108
+
109
+ public function testQuickRandom()
110
+ {
111
+ $randomInteger = mt_rand(1, 100);
112
+ $this->assertEquals($randomInteger, strlen(Str::quickRandom($randomInteger)));
113
+ $this->assertInternalType('string', Str::quickRandom());
114
+ $this->assertEquals(16, strlen(Str::quickRandom()));
115
+ }
116
117
118
+ public function testRandom()
119
120
+ $this->assertEquals(16, strlen(Str::random()));
121
122
+ $this->assertEquals($randomInteger, strlen(Str::random($randomInteger)));
123
+ $this->assertInternalType('string', Str::random());
124
125
126
0 commit comments