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

Add tests to make sure readme and methods stay up to date #75

Merged
merged 4 commits into from Dec 25, 2018
Merged

Add tests to make sure readme and methods stay up to date #75

merged 4 commits into from Dec 25, 2018

Conversation

BackEndTea
Copy link
Collaborator

This PR adds some new tests that make sure all the methods have a corresponding nullOr and all in the list of @method at the top of the class. It also makes sure that new methods are in the readme.

Plus it also fixes the errors found by these tests.

*/
public function testHasNullOr($method)
{
if ($method === 'notNull' || $method === 'null') {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Technically we do offer nullOr for these two methods, but they make absolutely no sense, so i chose to not add them to the list

(No really when do you check for nullOrNotNull or nullOrNull?)

@BackEndTea
Copy link
Collaborator Author

cc @keradus

@keradus
Copy link
Contributor

keradus commented Jun 28, 2018

love to see my idea spreading 👍

@Nyholm
Copy link
Collaborator

Nyholm commented Dec 25, 2018

This is absolutely awesome!
Thank you!

@Nyholm Nyholm merged commit 318f16b into webmozarts:master Dec 25, 2018
@BackEndTea
Copy link
Collaborator Author

Thank you @Nyholm

@BackEndTea BackEndTea deleted the fix/review-test branch December 25, 2018 11:07
@keradus
Copy link
Contributor

keradus commented Dec 28, 2018

it took a while ;)

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.

None yet

3 participants