public function testQuickRandom() { $this->expected = 16; $result = Str::quickRandom(); $this->actual = strlen($result); // デフォルトは16桁 $this->assertEquals($this->expected, $this->actual); $this->assertTrue(preg_match('/[A-Za-z0-9]{16}/', $result) === 1); }