1
0
mirror of https://github.com/fzaninotto/Faker.git synced 2025-03-24 01:09:50 +01:00

97 Commits

Author SHA1 Message Date
Hugo Fonseca
b00358942f added tests for Internet , add pt_pt Person , add pt_pt Internet and tests 2014-04-21 22:58:40 +01:00
Hugo Fonseca
92eb9aeae5 implemented tin (NIF) generator for pt_PT provider 2014-04-21 21:42:28 +01:00
Francois Zaninotto
d022072b5a Fix numberBetween max default value handling
Closes #305
2014-04-21 22:03:38 +02:00
Francois Zaninotto
d0f6a36aca Merge pull request #297 from hugofonseca/master
added pt_pt phone number and tests
2014-04-16 20:52:45 +02:00
Hugo Fonseca
37027f4768 removing unnecessary things 2014-04-15 18:32:40 +01:00
Charles SANQUER
faa49e4e54 add gender parameter to Person firstname and name methods
add FirstNameMale and FirstNameFemale method to all Person classes

add gender parameter to some localized lastname and prefix method

update README

add missing prefix method for bg_BG Person provider

set male and female firstnames for netherland locales

refactore is_IS firstname providers

add more values for gender parameter

rename person prefix methods to title and refactore them

separate male and female en_US firstname

update all Person Providers

add some unit tests for man, woman firstname and title

replace male and female title by academic degrees only for pl_PL

add polish names source comment

update male and female firstname for fr_FR, fr_CA and fr_BE

update male and female firstnames for es_AR, es_ES and es_PE

update male and female firstnames for pt_BR

update male and female firstnames and titles for it_IT

change title behavior for cs_CZ

update male and female firstnames for da_DK

change title behavior for nl_NL

update male and female firstnames for hu_HU

fix PSR2 coding style

fix PSR2 coding style

update male and female bengali titles

fix firstnames unit tests for me_ME

update male and female firstnames and titles for en_ZA and fi_FI (some names stay with gender unkown)

update male and female firstnames for lv_LV

update male and female firstnames for tr_TR

update male and female firstnames for zh_CN

update male and female firstnames for ja_JP

update male and female firstnames for fi_FI

update male and female firstnames for bn_BD

update male and female firstnames for ru_RU

fix title method for sk_SK

update partially male and female firstnames for sr_*

update README

remove deprecated comments

update male and female firstnames and title for hy_AM

update male and female firstnames for uk_UA

add gender option to name formatter

fix PSR2 coding style

make gender option more simple and improve implementation

restore unknown gender firstnames into male and female firstnames list

update es_ES firstnames list

restore source link for sr_RS Person firstname provider

simplify Person name unit test
2014-04-14 09:10:25 +02:00
Hugo Fonseca
258eb619af fixed phoneNumber returns both fixed and mobile numbers and updated tests 2014-04-13 22:42:25 +01:00
Francois Zaninotto
ef047cc3ea Fix test failing due to bad luck
Sometimes shit happens... The Romanian national identity card number
generator generated a non-exisiting date (02/29/98). Fixing the seed
solves the problem.
2014-04-13 22:31:02 +02:00
Hugo Fonseca
0f369b5319 fixed namespace 2014-04-11 23:59:21 +01:00
Hugo Fonseca
40b2383bef added pt_pt phone number and tests 2014-04-11 23:33:44 +01:00
Francois Zaninotto
f607027269 Fix unit test due to fixed date 2014-04-01 22:16:52 +02:00
Charles Sanquer
1a8feb646e add Maximum Timestamp option to get always same unix timestamp when using a fixed seed
fix and improve unit tests when setting endMaximumTimestamp

change static maximumEndTimestamp to an optional parameter $max in each
datetime methods

some improvements to DateTimeProvider max timestamp
2014-03-10 15:41:46 +01:00
David Stensland
6d2253cc56 Rewrite randomElement to use randomElements, and add test 2014-03-06 08:36:53 -05:00
David Stensland
a68fa66941 Lower randomElements defaults and add readme a note
Also tidied up the LengthException message, and made randomElements
just a tiny bit faster by moving the array lookup to after a unique
random value is chosen.
2014-03-06 07:55:25 -05:00
David Stensland
cae91904b8 add Faker\Provider\Base::randomElements 2014-03-05 12:37:52 -05:00
Francois Zaninotto
ea67b69b01 Revert test file modified by mistake 2014-03-03 21:37:52 +01:00
Francois Zaninotto
55251a9bc2 Refactor and speed up realText formatter bootstrap
With English locale, bootstrap of realText passes from 5s to under 100ms
2014-03-03 21:21:43 +01:00
Tim Düsterhus
4bdebac4db Fix tests for Text provider 2014-03-03 16:42:06 +01:00
Tim Düsterhus
8667c48846 Update Text provider with the latest suggestions 2014-03-03 14:29:45 +01:00
Tim Düsterhus
08069d4322 Improve documentation of the Text provider 2014-02-27 15:09:04 +01:00
Tim Düsterhus
09e4b3adea Add an advanced text generator based on markov chains.
The advanced text generator's text()-generator is compatible to
Lorem's one and can be used as a drop in replacement.
2014-02-18 18:14:02 +01:00
Francois Zaninotto
cc7f4bc025 Merge pull request #242 from bateller/patch-1
Put XML opening tag in php echo statement
2014-01-30 00:14:52 -08:00
bateller
94a6f48760 Put XML opening tag in php echo statement
<?xml conflicts with PHP. Put <?xml in PHP echo statement so it compiles correctly.
2014-01-28 04:04:38 -05:00
Mihai Zaharie
eca0754f3a Add PSR (all) compliance through PHP CS Fixer 2014-01-06 11:08:32 +02:00
Mihai Zaharie
8b4c0cdb4e Add phone number (landline/mobile, toll-free, premium-rate) formatters 2014-01-05 14:11:35 +02:00
Mihai Zaharie
ce612d8d04 Add Personal Numerical Code formatter 2014-01-05 12:48:39 +02:00
Kazuyuki Hayashi
929fbccf22 Add kana name formatters (ja_JP) 2013-12-12 16:47:27 +09:00
Francois Zaninotto
f2d5245b00 Fix coding standards, remove __callStatic(), add cURL and change defaults 2013-10-21 22:32:54 +02:00
Robert Reinhard
02107bc738 Image generation powered by LoremPixel 2013-10-21 21:33:55 +02:00
Francois Zaninotto
64ac4a0289 Refactor provider and tests to make it more Faker-like 2013-09-24 00:21:00 +02:00
Francois Zaninotto
b897e61489 Fix coding standards 2013-09-23 23:03:10 +02:00
Roman Shvets
4b4682ed78 typo 2013-09-23 23:01:20 +02:00
Roman Shvets
5d3ecd58e2 credit card generator 2013-09-23 23:01:20 +02:00
Francois Zaninotto
fac6a3839c Add unique() modifier
* Add `BaseProvider::unique($reset = false)
* Add `UniqueGenerator` proxy class
* Refactor `optional()` tests for better coverage
* Merge `optional()` and `unique()` documentations

Closes #171
2013-09-23 22:35:04 +02:00
Francois Zaninotto
34e1b2de0f Fix coding standards 2013-09-23 20:42:24 +02:00
Robert Reinhard
5a53cc02f4 Adding coding standards changes 2013-08-23 14:38:17 -07:00
Robert Reinhard
059ff45e36 Adding a chainable property that will randomly return NULL 2013-08-23 11:46:31 -07:00
Pascal Borreli
cf4a23db11 Fixed typos 2013-07-04 23:57:11 +01:00
Francois Zaninotto
b27d96a4e9 Fix coding standards (using php-cs-fixer) 2013-07-01 14:54:02 +02:00
Francois Zaninotto
5d660b794d Merge pull request #143 from lsv/colors
Color provider
2013-07-01 05:49:36 -07:00
aRn0D
c23e499e83 Returns a random element from a passed indexed and associative array 2013-06-18 21:41:01 +02:00
lsv
e088a2e625 added rgbCssColor method 2013-06-17 01:35:10 +02:00
lsv
9ce3d44ea2 fixed unit test and changed arrays name to a better name 2013-06-17 01:29:06 +02:00
lsv
99024404da Moved all color methods to a provider, and added
- safeHexColor
- safeColorName
- colorName
2013-06-17 01:22:10 +02:00
lsv
ec0566a352 removed a leftover variable on rgbColor 2013-06-17 00:25:48 +02:00
lsv
ecd58f0217 Added hexcolor, rgbcolor and rgbColorAsArray
Changed readme, with the 3 new methods
Added 3 new tests
2013-06-17 00:20:30 +02:00
Francois Zaninotto
585d999e87 Remove nl_NL unit test, which doesn't really test what the class does. 2013-06-09 19:20:07 +02:00
Francois Zaninotto
7b0f8cf831 Merge pull request #135 from Dynom/fixingnlNLPerson
Fixed the nl_NL Person provider.
2013-06-09 10:19:15 -07:00
Mark van der Velden
2050a80dca Cleaning up and adding some documentation about the test procedure. 2013-05-20 20:50:11 +02:00
Mark van der Velden
ca49cc2c39 Added the common denominator test 2013-05-20 20:50:10 +02:00