Skip to content

Commit

Permalink
Updated phpunit.xml
Browse files Browse the repository at this point in the history
Updated Faker comments
  • Loading branch information
TS committed Apr 6, 2024
1 parent 8eafecb commit b407e47
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
6 changes: 6 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,10 @@
<file>./src/Faker.php</file>
</include>
</source>
<coverage>
<report>
<html outputDirectory="./tests/coverage" />
<text outputFile="./tests/coverage/result.txt" />
</report>
</coverage>
</phpunit>
26 changes: 23 additions & 3 deletions src/Faker.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class Faker
* __construct
*
* @param array $options
*
* @return Faker
*/
public function __construct(array $options = [])
Expand Down Expand Up @@ -71,6 +72,7 @@ public function __construct(array $options = [])
* init
*
* @param array $options
*
* @return Faker
*/
public static function init(array $options = [])
Expand All @@ -84,6 +86,7 @@ public static function init(array $options = [])
*
* @param mixed $length
* @param mixed $first
*
* @return string
*/
public function word($length = null, $first = null, $suffixes = [])
Expand Down Expand Up @@ -112,6 +115,7 @@ public function word($length = null, $first = null, $suffixes = [])
* words
*
* @param mixed $count
*
* @return string
*/
public function words($count = 4, $glue = ' ', $min = 4, $max = 7, $first = null, $suffixes = [])
Expand All @@ -131,6 +135,7 @@ public function words($count = 4, $glue = ' ', $min = 4, $max = 7, $first = null
* sentence
*
* @param mixed $words
*
* @return string
*/
public function sentence($words = null)
Expand All @@ -149,6 +154,7 @@ public function sentence($words = null)
* @param mixed $max
* @param mixed $segments
* @param mixed $glue
*
* @return string
*/
public function repeat($chars = null, $min = 2, $max = 21, $segments = 1, $glue = '-')
Expand Down Expand Up @@ -181,6 +187,7 @@ public function repeat($chars = null, $min = 2, $max = 21, $segments = 1, $glue
* text
*
* @param int $sentences
*
* @return string
*/
public function text($sentences = 5, $min = 4, $max = 7)
Expand All @@ -201,6 +208,7 @@ public function text($sentences = 5, $min = 4, $max = 7)
* getRandomConsonant
*
* @param mixed $double
*
* @return string
*/
protected function getRandomConsonant($double = false)
Expand All @@ -220,6 +228,7 @@ protected function getRandomConsonant($double = false)
* getRandomVowel
*
* @param mixed $double
*
* @return string
*/
protected function getRandomVowel($double = false)
Expand All @@ -239,6 +248,7 @@ protected function getRandomVowel($double = false)
* getRandomNextChar
*
* @param mixed $prev
*
* @return string
*/
protected function getRandomNextChar($prev)
Expand All @@ -265,6 +275,7 @@ protected function getRandomNextChar($prev)
* isVowel
*
* @param mixed $char
*
* @return string
*/
protected function isVowel($char)
Expand All @@ -278,6 +289,7 @@ protected function isVowel($char)
*
* @param mixed $length
* @param mixed $first
*
* @return string
*/
public function firstname($min = 5, $max = 7, $first = null, $suffixes = [])
Expand All @@ -294,6 +306,7 @@ public function firstname($min = 5, $max = 7, $first = null, $suffixes = [])
*
* @param mixed $length
* @param mixed $first
*
* @return string
*/
public function lastname($min = 5, $max = 7, $first = null, $suffixes = [])
Expand All @@ -312,6 +325,7 @@ public function lastname($min = 5, $max = 7, $first = null, $suffixes = [])
* @param mixed $lengthFirst
* @param mixed $lengthLast
* @param mixed $reverse
*
* @return string
*/
public function fullname($lengthFirst = null, $lengthLast = null, $reverse = false)
Expand All @@ -335,6 +349,7 @@ public function fullname($lengthFirst = null, $lengthLast = null, $reverse = fal
*
* @param mixed $min
* @param mixed $max
*
* @return integer
*/
public function int($min = 0, $max = 10000)
Expand All @@ -347,7 +362,8 @@ public function int($min = 0, $max = 10000)
* float
*
* @param int $precision
* @return void
*
* @return float
*/
public function float($min = 0, $max = 10000, $precision = 2)
{
Expand All @@ -363,6 +379,7 @@ public function float($min = 0, $max = 10000, $precision = 2)
*
* @param mixed $min
* @param mixed $max
*
* @return boolean
*/
public function boolean()
Expand All @@ -376,6 +393,7 @@ public function boolean()
*
* @param mixed $mask
* @param mixed $input
*
* @return string
*/
public function mask($mask = '###-###-###', $input = 'ABCDEFGHJKLMNPRSTUVWXYZ0123456789')
Expand Down Expand Up @@ -426,7 +444,8 @@ public function password($min = 8, $max = 16, $segments = 2, $glue = '-')
* @param mixed $items
* @param int $howmuch
* @param mixed $implode
* @return void
*
* @return array
*/
public function pick($items, $howmuch = 1, $implode = null)
{
Expand Down Expand Up @@ -459,7 +478,8 @@ public function pick($items, $howmuch = 1, $implode = null)
* @param string $min
* @param mixed $max
* @param string $format
* @return void
*
* @return string
*/
public function date($min = null, $max = null, $format = 'Y-m-d')
{
Expand Down

0 comments on commit b407e47

Please sign in to comment.