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

TASK: Use deepObject for all non trivial parameters and remove [] from collection names #18

Merged
merged 3 commits into from
Jun 17, 2024

Conversation

mficzel
Copy link
Member

@mficzel mficzel commented Jun 7, 2024

Use style deepObject for all QueryParameters that are not scalar or singleValueValueObjects.

also:

  • added tests for the ValueObjectSpecifications
  • improved the ValueObjectSpecifications

…ValueObjects use style deepObject instead of form
@mficzel mficzel force-pushed the task/useDeepObjectForAllNonTrivialParameters branch from 36fd249 to 6d31435 Compare June 14, 2024 09:48
Copy link
Member

@nezaniel nezaniel left a comment

Choose a reason for hiding this comment

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

Looks good, I'd just remove the obsolete test

$this->assertEquals($isSVDTO, IsSingleValueDataTransferObject::isSatisfiedByClassName($className), sprintf('IsSingleValueDataTransferObject should return "%s" for class "%s"', $isSupported ? 'true' : 'false', $className));
}

public function testFoo(): void
Copy link
Member

Choose a reason for hiding this comment

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

This is obsolete because already covered in the last test case from above, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

Correct. During cleanup this was too far at the end to be noticed.

Copy link
Member Author

Choose a reason for hiding this comment

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

removed the obsolete test will merge now

@mficzel mficzel merged commit f7d2033 into main Jun 17, 2024
2 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