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
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
Mark van der Velden
9ef7d03761
Fixing the test.
2013-05-18 17:39:10 +02:00
Mark van der Velden
fff49bb3ed
Fixed the nl_NL Person provider.
2013-05-18 17:30:43 +02:00
Mark van der Velden
2a8258728b
Removed all requires and added the autoload definition to composer.
2013-05-18 16:53:58 +02:00
Charles SANQUER
6e563b81cc
add Random Float method
2013-02-20 14:59:46 +01:00
Maik Penz
9870a9c926
Adjusted test to new seed range.
2013-02-05 21:33:15 +01:00
Maik Penz
965367c8c4
uuid provider and test
2013-02-05 17:13:54 +01:00
Francois Zaninotto
a3ae3c9a43
Fix broken unit tests by b502129bd10799c15eae4e991bdb44b6f6500d8b
...
Refs #97
2013-01-01 15:57:55 +01:00
Francois Zaninotto
3fccf09ae1
Fix warning in documentor
2013-01-01 15:51:54 +01:00
Alexandre Segura
91e87aa0e0
Company Provider for french locale now returns valid SIREN/SIRET codes which verify the Luhn algorithm.
...
Added PHPUnit constraint to assert that a string is a valid code.
2012-12-18 20:37:52 +01:00