public function testValidNumericRandom() { // Default is size 10 $s = new Stringizer(""); $randomNum1 = $s->randomNumeric()->getString(); // Default is size 10 $this->assertEquals(10, $s->length()); // Confirm is Number, this potentially can fail because // a value with zero up front would make the value a string //$this->assertEquals(true, $s->isNumber()); $s2 = new Stringizer(intval($s->getString())); $this->assertEquals(true, $s2->isNumber()); $randonNum2 = $s->randomNumeric()->getString(); $this->assertNotEquals($randomNum1, $randonNum2); // Test non default size $s->randomNumeric(20)->getString(); $this->assertEquals(20, $s->length()); }