1
0
mirror of https://github.com/fzaninotto/Faker.git synced 2025-04-21 16:01:56 +02:00

459 Commits

Author SHA1 Message Date
Andreas Möller
c2b0253c39
Merge pull request #2045 from sanmon1985/patch-1
Fix letter 'a' in female lastname generation (ru_RU)
2020-10-23 11:46:24 +02:00
sanmon1985
3a572e323c
Update Person.php
Fix generating lastname for female gender. Changed from latin 'a' to cyrillic 'а'
2020-10-23 11:43:52 +02:00
rymiyamoto
3ed1ec020e
[fix] complies with psr-2 (#2006) 2020-10-23 09:24:14 +02:00
macaron
2f538cc46c
Fix dateTimeThisYear method (#2039) 2020-10-23 09:19:26 +02:00
lowerends
a3bde8883b
Fix IBAN generation for CR (Costa Rica) (#1984)
* Fix IBAN generation for CR (Costa Rica)
2020-10-23 09:06:37 +02:00
Andreas Möller
29f10e44ac Fix: Reduce visibility of setUp() and tearDown() (#1821) 2019-11-28 10:23:13 +01:00
Francois Zaninotto
2afefd7f87
Merge pull request #1819 from localheinz/fix/header
Fix: Remove unnecessary class-level DocBlocks
2019-11-27 16:11:10 +01:00
Francois Zaninotto
ce73e7341c
Merge pull request #1820 from localheinz/fix/final
Fix: Mark test classes as final
2019-11-27 15:47:58 +01:00
Andreas Möller
c981c04a1b
Merge pull request #1843 from wimg/php74compat-curly-braces
Curly braces for arrays is deprecated in PHP 7.4
2019-11-23 12:16:50 +01:00
wimg
1bf44386ea
Curly braces for arrays is deprecated in PHP 7.4 (detected by PHPCompatibility) 2019-11-12 10:10:47 +09:00
Pim Jansen
7f1052c420
Skipped lorumpixel test for the release where the service is pretty unstable 2019-11-06 18:29:44 +01:00
Francois Zaninotto
19c927e30d
Merge pull request #1451 from mikk150/add_birthplace_support_for_ID_nik_generator
add birthplace support for ID nik generator
2019-11-05 08:56:57 +01:00
Andreas Möller
70c8ebaa64
Fix: Mark test classes as final 2019-10-25 18:10:10 +02:00
Andreas Möller
5417d43117
Fix: Remove unnecessary class-level DocBlocks 2019-10-25 18:07:06 +02:00
Francois Zaninotto
242591b09a
Merge pull request #1590 from stevegrunwell/fix/refactor-text-tests
Refactoring of the TextTest class
2019-09-18 09:27:53 +02:00
ziming
63644acd25 Bug Fix en_SG mobile number generation (#1658)
* Fix SG mobile number generation

* rename function to oneToEight

* Fix en_SG mobile test regex

* fix en_SG mobile regex test 2
2019-09-17 22:00:03 +02:00
Steve Grunwell
ebab5aaa48 Keep InvalidArgumentException as a string, rather than relying on InvalidArgumentException::class, which only works in PHP 5.5+ 2019-09-17 09:29:51 -04:00
Steve Grunwell
4f927ffe8a Remove the type-hint on testTextMaxLength() for compatibility with older versions of PHP 2019-09-17 09:25:18 -04:00
Mikk Tendermann
2fa171274f add tests to ni birthplace 2019-09-17 13:58:39 +03:00
Steve Grunwell
d6ea3a40aa Move from @expectedException to setExpectedException() for compatibility with newer versions of PHPUnit 2019-09-16 17:05:23 -04:00
Steve Grunwell
fbeb10c89f Merge branch 'master' into fix/refactor-text-tests 2019-09-16 17:02:06 -04:00
Alexander Karlstad
ac6690ff37 Adjust test so it runs in older PHP versions 2019-09-10 15:23:38 +02:00
Alexander Karlstad
1ffc81d2fd Add mobileNumber() method for nb_NO, including tests for it 2019-09-10 15:06:26 +02:00
Nicolas Hedger
1cc3ca69cd Add a swiss social security number (AVS13) generator (#1533)
* Add a Swiss Social Security Number (AVS13) generator.

* Add a Swiss Social Security Number (AVS13) generator - (includes changes)

* Set avs13 methods as static

* Add relevant documentation to the README.

* Update README to include documentation for randomDigitsString.

* Add missing tests for the randomDigitsString method

* Remove randomDigitsString function as a similar numerify() function already exists.

* Fix incorrect indentation

* Remove unwanted method documentation

* Rename test method to be consistent with the other PersonTest.php files in de_CH and it_CH.
2019-09-03 09:47:47 +02:00
Francois Zaninotto
9979692c5a
Merge pull request #1747 from aanfarhan/master
Add lastName gender specific on ru_RU locale
2019-09-03 09:07:55 +02:00
Omniglies
2919adc68d Add test for random lastName 2019-09-03 13:33:47 +07:00
David Fernández
61ca24b2c7 no message 2019-08-27 22:17:06 +02:00
Omniglies
8d16af3dd1 Fix lastName should generate random gender 2019-08-27 17:24:45 +07:00
Andreas Möller
0c53182cf3
Merge pull request #1776 from icanhazstring/feature/hsl
Add hslColor to ColorProvider
2019-08-27 09:26:44 +02:00
Andreas Frömer
cd7422041d Add hslcolor
This will add hslColor and hslColorAsArray for ColorProvider
Should solve #1720
2019-08-26 22:19:55 +02:00
Andreas Möller
c9f691175a Enhancement: Assert that postcode generated by Austrian Address provider matches format 2019-08-26 11:55:24 +02:00
Omniglies
c6d03aa993 Add ru_RU Person Test 2019-08-25 22:02:00 +07:00
Andreas Möller
6a9d875419
Enhancement: Assert that imageUrl can be used with gray flag 2019-08-24 13:11:13 +02:00
Francois Zaninotto
dc68be0a45
Merge pull request #1675 from thearsalan/feature/add-valid-national-code-fa_IR
Add Valid National Code Generator to fa_IR Person
2019-04-01 23:22:59 +02:00
Arsalan
cb01380d2f Add Valid National Code Generator to fa_IR 2019-04-02 01:43:28 +04:30
Francois Zaninotto
cc2d3b3797
Merge pull request #1682 from thearsalan/hotfix/add-undeclared-faker-instance-to-test-en_NG
Add Undeclared Faker Instance to PhoneNumber Test in en_NG
2019-04-01 22:39:28 +02:00
Arsalan
a9e2376a40 Add Undeclared Faker Instance to PhoneNumber Test in en_NG 2019-03-31 18:11:56 +04:30
Francois Zaninotto
a8340d9828
Merge pull request #1664 from thewhit/master
Update deprecated \PHPUnit_Framework_TestCase with PHPUnit\Framework\TestCase
2019-03-29 18:43:29 +01:00
Aleksey Klimov
acd4a83b68 Add 'Faker\Provider\en_US\Company::catchPhrase' to ru_RU locale 2019-03-01 21:25:29 +03:00
Wilson Whitaker
3686ec0f50 Replace \PHPUnit_Framework_TestCase with PHPUnit\Framework\TestCase 2019-02-19 13:33:15 -05:00
Steve Grunwell
74e5be41cb Add messages to explain failures for the InvalidArgumentException tests within TextTest 2018-09-19 11:22:02 -07:00
Steve Grunwell
334b93dd5e Instead of using a foreach loop, take advantage of PHPUnit's data providers for TextTest::testTextMaxLength() 2018-09-19 11:16:59 -07:00
Steve Grunwell
5fc2554059 Rather than having to set up the Generator in every test method, set it up automatically using the @before annotation 2018-09-19 11:09:29 -07:00
Gabriel Caruso
b756793324
Use dedicated assertCount assertion 2018-07-12 22:30:54 -03:00
Gabriel Caruso
f9c030566e
Remove unnecessary test annotations 2018-07-12 22:29:53 -03:00
Gabriel Caruso
6dbd90f5b4
Small tweaks
Remove unnecessaries parentheses, casts, semi-colons, etc
2018-07-12 22:26:33 -03:00
Aykut Aras
76dac504db Merged conflicts at DateTimeTest.php 2018-06-15 09:34:06 +02:00
ppelgrims
85d28b7f21 Test functionality seperately 2018-06-12 16:58:01 +02:00
ppelgrims
502a5027f5 Merge remote-tracking branch 'upstream/master' 2018-06-12 16:52:28 +02:00
Ross Mitchell
be8a0597cd
Push the max date far into the future so the test can pass 2018-04-18 21:46:48 +01:00