public function testQuickRandomWithParams() { $this->expected = 5; $result = Str::QuickRandom($this->expected); $this->actual = strlen($result); $this->assertEquals($this->expected, $this->actual); $this->assertTrue(preg_match('/[A-Za-z0-9]{' . $this->expected . '}/', $result) === 1); }