Skip to content

Commit

Permalink
Fixed failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PHLAK committed May 4, 2019
1 parent ec6cf52 commit 0041166
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/CodenameTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@ public function test_it_can_generate_a_codename()
{
$codename = new Codename();

$this->assertRegexp('/^([a-z]+)(?:-([a-z]+))+$/', $codename);
$this->assertRegexp('/^([a-z]+)(?:-([a-z]+))+$/', (string) $codename);
}

public function test_it_can_generate_a_codename_staticaly()
{
$codename = Codename::make();

$this->assertRegexp('/^([a-z]+)(?:-([a-z]+))+$/', $codename);
$this->assertRegexp('/^([a-z]+)(?:-([a-z]+))+$/', (string) $codename);
}

public function test_it_can_generate_a_codename_with_the_helper_method()
{
$codename = cafelias();

$this->assertRegexp('/^([a-z]+)(?:-([a-z]+))+$/', $codename);
$this->assertRegexp('/^([a-z]+)(?:-([a-z]+))+$/', (string) $codename);
}
}

0 comments on commit 0041166

Please sign in to comment.