-
Notifications
You must be signed in to change notification settings - Fork 2
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 missing Unit tests. #46
Conversation
Container::camelize() and Container::underscore() are now covered.
/** | ||
* Camelizes a string. | ||
* | ||
* @covers ::camelize() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't use () at the end ...
/** | ||
* Un-camelizes a string. | ||
* | ||
* @covers ::underscore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to use data providers for that and test a little more scenarios.
Note:
The same data provider can be used here for both functions.
*/ | ||
public function test_camelize($string_underscore, $string_camelize) { | ||
$result = $this->container->camelize($string_underscore); | ||
$this->assertEquals($string_camelize, $result, 'The strings are the same.'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets remove the 'The strings are the same.' here - it does not give new information.
Looks perfect! |
Container::camelize() and Container::underscore() are now covered.