1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-07-31 02:10:22 +02:00

Undo this LocalSocket fiasco, fix tests for latest phpunit

This commit is contained in:
Jordi Boggiano
2016-09-25 16:07:01 +02:00
parent 3dc7a79a3e
commit 28742b656f
17 changed files with 456 additions and 459 deletions

View File

@@ -33,7 +33,11 @@ class AmqpHandlerTest extends TestCase
$messages = [];
$exchange = $this->createMock('AMQPExchange', ['publish', 'setName'], [], '', false);
$exchange = $this->getMockBuilder('AMQPExchange')
->setMethods(['publish', 'setName'])
->disableOriginalConstructor()
->getMock();
$exchange->expects($this->any())
->method('publish')
->will($this->returnCallback(function ($message, $routing_key, $flags = 0, $attributes = []) use (&$messages) {
@@ -81,7 +85,10 @@ class AmqpHandlerTest extends TestCase
$messages = [];
$exchange = $this->createMock('PhpAmqpLib\Channel\AMQPChannel', ['basic_publish', '__destruct'], [], '', false);
$exchange = $this->getMockBuilder('PhpAmqpLib\Channel\AMQPChannel')
->setMethods(['basic_publish', '__destruct'])
->disableOriginalConstructor()
->getMock();
$exchange->expects($this->any())
->method('basic_publish')