forked from fzaninotto/Faker
-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhancement: Extract fixtures into separate classes
- Loading branch information
1 parent
3d69b4d
commit 86ebdd0
Showing
4 changed files
with
44 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
namespace Faker\Test\Fixture\Provider; | ||
|
||
final class BarProvider | ||
{ | ||
public function fooFormatter() | ||
{ | ||
return 'barfoo'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace Faker\Test\Fixture\Provider; | ||
|
||
final class FooProvider | ||
{ | ||
public function fooFormatter() | ||
{ | ||
return 'foobar'; | ||
} | ||
|
||
public function fooFormatterWithArguments($value = '') | ||
{ | ||
return 'baz' . $value; | ||
} | ||
} |