Skip to content

Commit

Permalink
Strings 2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Awilum committed Nov 29, 2020
1 parent f321fe5 commit 8e03478
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/StringsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@
});

test('test random() method', function (): void {
$this->assertNotEquals(Strings::create()->random(0), Strings::create()->random(0));
$this->assertTrue(is_string(Strings::create()->random(0)->toString()));
$this->assertStringContainsString(Strings::create()->random(0)->toString(), '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ');
$this->assertNotEquals(Strings::create()->random(), Strings::create()->random());
$this->assertNotEquals(Strings::create()->random(10), Strings::create()->random(10));
$this->assertNotEquals(Strings::create()->random(100), Strings::create()->random(100));
$this->assertNotEquals(Strings::create()->random(10, '0123456789'), Strings::create()->random(10, '0123456789'));
$this->assertEquals(10, Strings::create(Strings::create()->random(10, '0123456789'))->length());
});
Expand Down

0 comments on commit 8e03478

Please sign in to comment.