public function testValidAlphaRandom() { // Default is size 10 $s = new Stringizer(""); $randomString1 = $s->randomAlpha()->getString(); // Default is size 10 $this->assertEquals(10, $s->length()); // Confirm is Alpha $this->assertEquals(true, $s->isAlpha()); $randomString2 = $s->randomAlpha()->getString(); $this->assertNotEquals($randomString1, $randomString2); // Test non default size $randomString2 = $s->randomAlpha(20)->getString(); $this->assertEquals(20, $s->length()); }