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 missing Unit tests. #46

Merged
merged 4 commits into from
Jun 12, 2015
Merged

Add missing Unit tests. #46

merged 4 commits into from
Jun 12, 2015

Conversation

drupol
Copy link
Collaborator

@drupol drupol commented Jun 10, 2015

Container::camelize() and Container::underscore() are now covered.

Container::camelize() and Container::underscore() are now covered.
/**
* Camelizes a string.
*
* @covers ::camelize()
Copy link
Collaborator

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
Copy link
Owner

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.

@LionsAd LionsAd added this to the 1.0.0 milestone Jun 11, 2015
*/
public function test_camelize($string_underscore, $string_camelize) {
$result = $this->container->camelize($string_underscore);
$this->assertEquals($string_camelize, $result, 'The strings are the same.');
Copy link
Owner

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.

@LionsAd LionsAd added RTBM and removed Needs review labels Jun 12, 2015
@LionsAd
Copy link
Owner

LionsAd commented Jun 12, 2015

Looks perfect!

LionsAd added a commit that referenced this pull request Jun 12, 2015
@LionsAd LionsAd merged commit 3fffdae into LionsAd:7.x-1.x Jun 12, 2015
@drupol drupol deleted the Add-missing-tests branch June 25, 2015 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants