function test_alphanumeric_gen() { $rand = iclicker_service::randomAlphaNumeric(10); $this->assertNotNull($rand); $this->assertTrue(strlen($rand) == 10); $rand = iclicker_service::randomAlphaNumeric(12); $this->assertNotNull($rand); $this->assertTrue(strlen($rand) == 12); }
function test_alphanumeric_gen() { $this->resetAfterTest(true); // reset all changes automatically after this test $rand = iclicker_service::randomAlphaNumeric(10); $this->assertNotNull($rand); $this->assertTrue(strlen($rand) == 10); $rand = iclicker_service::randomAlphaNumeric(12); $this->assertNotNull($rand); $this->assertTrue(strlen($rand) == 12); }