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

Simplify specification usage #7

Merged
merged 4 commits into from
Jul 14, 2024
Merged

Simplify specification usage #7

merged 4 commits into from
Jul 14, 2024

Conversation

Baptouuuu
Copy link
Member

Problem

Declaring anonymous classes or named classes each time a new usage arise is a bit verbose and harder to read.

Solution

Use Innmind\Specification\Comparator\Property to abstract away the interface

@Baptouuuu Baptouuuu added the enhancement New feature or request label Jul 14, 2024
@Baptouuuu Baptouuuu self-assigned this Jul 14, 2024
Copy link

codecov bot commented Jul 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.35%. Comparing base (9cab7ad) to head (27cad5e).

Additional details and impacted files
@@            Coverage Diff             @@
##             develop       #7   +/-   ##
==========================================
  Coverage      97.35%   97.35%           
  Complexity       291      291           
==========================================
  Files             38       38           
  Lines           1926     1926           
==========================================
  Hits            1875     1875           
  Misses            51       51           

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

* develop:
  remove remnants of phpunit
  use builtin memory assertion
  use builtin method to disable memory limit
  update changelog
  fix constructor
  use named constructors
@Baptouuuu Baptouuuu merged commit e74c574 into develop Jul 14, 2024
28 checks passed
@Baptouuuu Baptouuuu deleted the simplify-spec-usage branch July 14, 2024 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant