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 unit tests for the instantiation of the driver without server #165

Merged
merged 1 commit into from
Mar 5, 2016

Conversation

stof
Copy link
Member

@stof stof commented Mar 5, 2016

Refs #51

@stof
Copy link
Member Author

stof commented Mar 5, 2016

after that, the line coverage of the ZombieDriver class is over 98%

{
public function testInstantiateWithServer()
{
$server = $this->prophesize('\Behat\Mink\Driver\NodeJS\Server\ZombieServer')->reveal();
Copy link
Member Author

Choose a reason for hiding this comment

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

As Prophecy is now included natively in PHPUnit since 4.5 (which is already quite old), I'm using it as I find its usage much easier than the PHPUnit mocks (and this is the reason why support is builtin in PHPUnit btw)

@aik099
Copy link
Member

aik099 commented Mar 5, 2016

OK.

stof added a commit that referenced this pull request Mar 5, 2016
Add unit tests for the instantiation of the driver without server
@stof stof merged commit 2edea6f into minkphp:master Mar 5, 2016
@stof stof deleted the improve_driver_coverage branch March 5, 2016 11:30
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

2 participants