-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version 2.0 #25
Version 2.0 #25
Conversation
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #25 +/- ##
==============================================
- Coverage 100.00% 67.68% -32.32%
- Complexity 33 65 +32
==============================================
Files 2 4 +2
Lines 82 164 +82
==============================================
+ Hits 82 111 +29
- Misses 0 53 +53
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
tests/FakeCarTest.php
Outdated
//$result6 = $this->assertCount(1, $this->callProtectedMethod([$data], 'getRandomElementsFromArray')); | ||
//$result6 = $this->callProtectedMethod([$data, null], 'getRandomElementsFromArray'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove comments
tests/FakeCarTest.php
Outdated
} | ||
|
||
public function testVehicleFuelType() | ||
{ | ||
$this->assertTrue(in_array($this->faker->vehicleFuelType, CarData::getVehicleFuelTypes())); | ||
//dd($this->faker->vehicleFuelType, FakeCarData::$vehicleFuelTypes); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove comments
tests/FakeCarTest.php
Outdated
public function callProtectedMethod($args, $method, $object = null) | ||
{ | ||
if (is_null($object)) { | ||
//$object = new FakeCar($this->faker); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove comments
tests/FakeCarTest.php
Outdated
if (is_null($class)) { | ||
$class = new Fakecar($this->faker); | ||
if (is_null($object)) { | ||
//$object = new FakeCar($this->faker); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove comments
2. The provider name has changed from `Fakear` to `FakeCar`. This will cause problems if you are on a case-sensitive filesystem, but it is strongly recommended to change this even if you are not. | ||
3. The methods `transliterate` and `checkDigit` on the `FakeCar` provider class are now no longer publicly available (Visibility changed to private). | ||
4. The public methods `getRandomElementsFromArray` and `getWeighted` on the `FakeCar` provider class has been moved to a helper class. Access them like this: `\Faker\Provider\FakeCarHelper::getWeighted` | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add all BCs
No description provided.