Skip to content
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

Merged
merged 25 commits into from
Feb 2, 2024
Merged

Version 2.0 #25

merged 25 commits into from
Feb 2, 2024

Conversation

pelmered
Copy link
Owner

@pelmered pelmered commented May 6, 2023

No description provided.

@pelmered pelmered self-assigned this May 6, 2023
@pelmered pelmered marked this pull request as draft May 6, 2023 20:57
@codecov-commenter
Copy link

codecov-commenter commented May 6, 2023

Codecov Report

Attention: 34 lines in your changes are missing coverage. Please review.

Comparison is base (3937dc1) 100.00% compared to head (acbb8f1) 67.68%.

Files Patch % Lines
src/Fakecar.php 0.00% 34 Missing ⚠️

❗ 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     
Flag Coverage Δ
tests 67.68% <76.55%> (-32.32%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines 221 to 222
//$result6 = $this->assertCount(1, $this->callProtectedMethod([$data], 'getRandomElementsFromArray'));
//$result6 = $this->callProtectedMethod([$data, null], 'getRandomElementsFromArray');
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove comments

}

public function testVehicleFuelType()
{
$this->assertTrue(in_array($this->faker->vehicleFuelType, CarData::getVehicleFuelTypes()));
//dd($this->faker->vehicleFuelType, FakeCarData::$vehicleFuelTypes);
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove comments

public function callProtectedMethod($args, $method, $object = null)
{
if (is_null($object)) {
//$object = new FakeCar($this->faker);
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove comments

if (is_null($class)) {
$class = new Fakecar($this->faker);
if (is_null($object)) {
//$object = new FakeCar($this->faker);
Copy link
Owner Author

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`

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add all BCs

@pelmered pelmered marked this pull request as ready for review February 2, 2024 15:24
@pelmered pelmered merged commit e7e516a into main Feb 2, 2024
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants