mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-11 07:34:12 +02:00
Fix a ton of tests for latest phpunit and turn faked-stream tests into real network tests with a local server
This commit is contained in:
@@ -33,7 +33,7 @@ class AmqpHandlerTest extends TestCase
|
||||
|
||||
$messages = [];
|
||||
|
||||
$exchange = $this->getMock('AMQPExchange', ['publish', 'setName'], [], '', false);
|
||||
$exchange = $this->createMock('AMQPExchange', ['publish', 'setName'], [], '', false);
|
||||
$exchange->expects($this->any())
|
||||
->method('publish')
|
||||
->will($this->returnCallback(function ($message, $routing_key, $flags = 0, $attributes = []) use (&$messages) {
|
||||
@@ -81,7 +81,7 @@ class AmqpHandlerTest extends TestCase
|
||||
|
||||
$messages = [];
|
||||
|
||||
$exchange = $this->getMock('PhpAmqpLib\Channel\AMQPChannel', ['basic_publish', '__destruct'], [], '', false);
|
||||
$exchange = $this->createMock('PhpAmqpLib\Channel\AMQPChannel', ['basic_publish', '__destruct'], [], '', false);
|
||||
|
||||
$exchange->expects($this->any())
|
||||
->method('basic_publish')
|
||||
|
Reference in New Issue
Block a user