Properly initialize value.

Change call to protected method to public one.
This commit is contained in:
Benoît Burnichon
2015-06-09 11:26:20 +02:00
parent cd7d8b5d3b
commit 92636bfe5a
2 changed files with 2 additions and 1 deletions

View File

@@ -56,6 +56,7 @@ class Notifier implements NotifierInterface
$command = $this->createCommand($message); $command = $this->createCommand($message);
$this->socket->send($command); $this->socket->send($command);
$result = false;
$limit = microtime(true) + $this->timeout; $limit = microtime(true) + $this->timeout;
while (microtime(true) < $limit && false === $result = $this->socket->recv(\ZMQ::MODE_NOBLOCK)) { while (microtime(true) < $limit && false === $result = $this->socket->recv(\ZMQ::MODE_NOBLOCK)) {

View File

@@ -25,6 +25,6 @@ class TaskListTest extends \PhraseanetTestCase
$application->add($command); $application->add($command);
$setupCommand = $application->find('task-manager:task:list'); $setupCommand = $application->find('task-manager:task:list');
$setupCommand->execute($input, $output); $setupCommand->run($input, $output);
} }
} }