Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Fixes integration test listener #311

Merged
merged 2 commits into from
Apr 4, 2018

Conversation

ezimuel
Copy link
Contributor

@ezimuel ezimuel commented Apr 3, 2018

This PR fixes the integration test listener if the environment variables are not available.

$this->fixtureLoader->createDatabase();
}

public function endTestSuite(TestSuite $suite)
{
if ($suite->getName() !== 'integration test') {
if ($suite->getName() !== 'integration test' ||
! isset($this->fixtureLoader)) {
Copy link
Member

Choose a reason for hiding this comment

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

This should read:

if ($suite->getName() !== 'integration test'
    || ! isset($this->fixtureLoader)
) {

(Operators go on the next line, so that we can add more conditions without requiring additional lines of changes.)

I'll fix this on merge.

@weierophinney weierophinney merged commit 5181b71 into zendframework:master Apr 4, 2018
weierophinney added a commit that referenced this pull request Apr 4, 2018
weierophinney added a commit that referenced this pull request Apr 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants