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

Make DispatchableDe/Serializer tests as specific as possible #199

Merged
merged 1 commit into from
Apr 8, 2016

Conversation

thiemowmde
Copy link
Contributor

This renames base classes and makes them as specific as possible:

  • "DeserializerBaseTest" to "DispatchableDeserializerTest".
  • "SerializerBaseTest" to "DispatchableSerializerTest".

All tests on non-dispatchable classes can not use these base classes any more.

I'm also switching to assertSame to compare the serialized arrays, which makes the order part of the test. Please do not argue with "order is unspecified in JSON". This component does not know anything about JSON. The serializers in this component output PHP arrays. Order is a thing in PHP arrays.

This is meant as a base for #198. It will make working on #198 much easier.

@thiemowmde
Copy link
Contributor Author

Kindly asking, uh, the original author @Tpt for a review? Maybe @JeroenDeDauw?

@Tpt Tpt merged commit 21f60a8 into master Apr 8, 2016
@Tpt Tpt deleted the dispatchableSerializerTest branch April 8, 2016 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants