summaryrefslogtreecommitdiffstats
path: root/tests/Monolog/Handler/FlowdockHandlerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Monolog/Handler/FlowdockHandlerTest.php')
-rw-r--r--tests/Monolog/Handler/FlowdockHandlerTest.php17
1 files changed, 8 insertions, 9 deletions
diff --git a/tests/Monolog/Handler/FlowdockHandlerTest.php b/tests/Monolog/Handler/FlowdockHandlerTest.php
index 4b120d5..23f8b06 100644
--- a/tests/Monolog/Handler/FlowdockHandlerTest.php
+++ b/tests/Monolog/Handler/FlowdockHandlerTest.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
/*
* This file is part of the Monolog package.
@@ -12,7 +12,7 @@
namespace Monolog\Handler;
use Monolog\Formatter\FlowdockFormatter;
-use Monolog\TestCase;
+use Monolog\Test\TestCase;
use Monolog\Logger;
/**
@@ -61,15 +61,14 @@ class FlowdockHandlerTest extends TestCase
private function createHandler($token = 'myToken')
{
- $constructorArgs = array($token, Logger::DEBUG);
+ $constructorArgs = [$token, Logger::DEBUG];
$this->res = fopen('php://memory', 'a');
- $this->handler = $this->getMock(
- '\Monolog\Handler\FlowdockHandler',
- array('fsockopen', 'streamSetTimeout', 'closeSocket'),
- $constructorArgs
- );
+ $this->handler = $this->getMockBuilder('Monolog\Handler\FlowdockHandler')
+ ->setConstructorArgs($constructorArgs)
+ ->setMethods(['fsockopen', 'streamSetTimeout', 'closeSocket'])
+ ->getMock();
- $reflectionProperty = new \ReflectionProperty('\Monolog\Handler\SocketHandler', 'connectionString');
+ $reflectionProperty = new \ReflectionProperty('Monolog\Handler\SocketHandler', 'connectionString');
$reflectionProperty->setAccessible(true);
$reflectionProperty->setValue($this->handler, 'localhost:1234');