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

[2.x] Compact output when using datasets #839

Merged
merged 2 commits into from
Jun 17, 2023

Conversation

cerbero90
Copy link
Contributor

Q A
Bug fix? no
New feature? yes
Fixed tickets -

Hello :) this PR redacts the object annotations to print a more compact output when using datasets.

Before:

PASS  Tests\Feature\SourcesTest
  ✓ it throws an exception when a JSON source is not supported                                                                                                             0.03s
  ✓ it throws an exception when Guzzle is required but not installed with (Mockery_0_Cerbero_JsonParser_Sources_Endpoint Object (…))
  ✓ it throws an exception when Guzzle is required but not installed with (Mockery_1_Cerbero_JsonParser_Sources_Psr7Request Object (…))
  ✓ it supports multiple sources with (Cerbero\JsonParser\Sources\AnySource Object (…), 64, [1, '', 'foo', …])
  ✓ it supports multiple sources with (Cerbero\JsonParser\Sources\CustomSource Object (…), 64, [1, '', 'foo', …])
  ✓ it supports multiple sources with (Mockery_4_Cerbero_JsonParser_Sources_Endpoint Object (…), 64, [1, '', 'foo', …])
  ✓ it supports multiple sources with (Cerbero\JsonParser\Sources\Filename Object (…), 64, [1, '', 'foo', …])
  ✓ it supports multiple sources with (Cerbero\JsonParser\Sources\IterableSource Object (…), 64, [1, '', 'foo', …])
  ✓ it supports multiple sources with (Cerbero\JsonParser\Sources\Json Object (…), 64, [1, '', 'foo', …])
  ✓ it supports multiple sources with (Cerbero\JsonParser\Sources\JsonResource Object (…), 64, [1, '', 'foo', …])
  ✓ it supports multiple sources with (Mockery_5_Cerbero_JsonParser_Sources_LaravelClientRequest Object (…), 64, [1, '', 'foo', …])
  ✓ it supports multiple sources with (Cerbero\JsonParser\Sources\LaravelClientResponse Object (…), 64, [1, '', 'foo', …])
  ✓ it supports multiple sources with (Cerbero\JsonParser\Sources\Psr7Message Object (…), 64, [1, '', 'foo', …])
  ✓ it supports multiple sources with (Mockery_7_Cerbero_JsonParser_Sources_Psr7Request Object (…), 64, [1, '', 'foo', …])
  ✓ it supports multiple sources with (Cerbero\JsonParser\Sources\Psr7Stream Object (…), 64, [1, '', 'foo', …])

After:

PASS  Tests\Feature\SourcesTest
  ✓ it throws an exception when a JSON source is not supported                                                                                                             0.03s
  ✓ it throws an exception when Guzzle is required but not installed with (Mockery_0_Cerbero_JsonParser_Sources_Endpoint)
  ✓ it throws an exception when Guzzle is required but not installed with (Mockery_1_Cerbero_JsonParser_Sources_Psr7Request)
  ✓ it supports multiple sources with (Cerbero\JsonParser\Sources\AnySource, 64, [1, '', 'foo', …])
  ✓ it supports multiple sources with (Cerbero\JsonParser\Sources\CustomSource, 64, [1, '', 'foo', …])
  ✓ it supports multiple sources with (Mockery_4_Cerbero_JsonParser_Sources_Endpoint, 64, [1, '', 'foo', …])
  ✓ it supports multiple sources with (Cerbero\JsonParser\Sources\Filename, 64, [1, '', 'foo', …])
  ✓ it supports multiple sources with (Cerbero\JsonParser\Sources\IterableSource, 64, [1, '', 'foo', …])
  ✓ it supports multiple sources with (Cerbero\JsonParser\Sources\Json, 64, [1, '', 'foo', …])
  ✓ it supports multiple sources with (Cerbero\JsonParser\Sources\JsonResource, 64, [1, '', 'foo', …])
  ✓ it supports multiple sources with (Mockery_5_Cerbero_JsonParser_Sources_LaravelClientRequest, 64, [1, '', 'foo', …])
  ✓ it supports multiple sources with (Cerbero\JsonParser\Sources\LaravelClientResponse, 64, [1, '', 'foo', …])
  ✓ it supports multiple sources with (Cerbero\JsonParser\Sources\Psr7Message, 64, [1, '', 'foo', …])
  ✓ it supports multiple sources with (Mockery_7_Cerbero_JsonParser_Sources_Psr7Request, 64, [1, '', 'foo', …])
  ✓ it supports multiple sources with (Cerbero\JsonParser\Sources\Psr7Stream, 64, [1, '', 'foo', …])

@nunomaduro nunomaduro merged commit 193dd10 into pestphp:2.x Jun 17, 2023
14 checks passed
@cerbero90 cerbero90 deleted the feature/compact-output branch June 17, 2023 18:59
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