mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-06 13:16:39 +02:00
Yet another CS fix on SocketHandlerTest
This commit is contained in:
@@ -121,7 +121,8 @@ class SocketHandlerTest extends TestCase
|
|||||||
{
|
{
|
||||||
$this->setMockHandler(array('fwrite'));
|
$this->setMockHandler(array('fwrite'));
|
||||||
|
|
||||||
$callback = function($arg) {
|
$callback = function($arg)
|
||||||
|
{
|
||||||
$map = array(
|
$map = array(
|
||||||
'Hello world' => 6,
|
'Hello world' => 6,
|
||||||
'world' => false,
|
'world' => false,
|
||||||
@@ -143,7 +144,8 @@ class SocketHandlerTest extends TestCase
|
|||||||
{
|
{
|
||||||
$this->setMockHandler(array('fwrite', 'stream_get_meta_data'));
|
$this->setMockHandler(array('fwrite', 'stream_get_meta_data'));
|
||||||
|
|
||||||
$callback = function($arg) {
|
$callback = function($arg)
|
||||||
|
{
|
||||||
$map = array(
|
$map = array(
|
||||||
'Hello world' => 6,
|
'Hello world' => 6,
|
||||||
'world' => 5,
|
'world' => 5,
|
||||||
@@ -170,7 +172,8 @@ class SocketHandlerTest extends TestCase
|
|||||||
$this->setMockHandler(array('fwrite', 'stream_get_meta_data'));
|
$this->setMockHandler(array('fwrite', 'stream_get_meta_data'));
|
||||||
|
|
||||||
$res = $this->res;
|
$res = $this->res;
|
||||||
$callback = function($string) use ($res) {
|
$callback = function($string) use ($res)
|
||||||
|
{
|
||||||
fclose($res);
|
fclose($res);
|
||||||
return strlen('Hello');
|
return strlen('Hello');
|
||||||
};
|
};
|
||||||
@@ -199,7 +202,8 @@ class SocketHandlerTest extends TestCase
|
|||||||
{
|
{
|
||||||
$this->setMockHandler(array('fwrite'));
|
$this->setMockHandler(array('fwrite'));
|
||||||
|
|
||||||
$callback = function($arg) {
|
$callback = function($arg)
|
||||||
|
{
|
||||||
$map = array(
|
$map = array(
|
||||||
'Hello world' => 6,
|
'Hello world' => 6,
|
||||||
'world' => 5,
|
'world' => 5,
|
||||||
|
Reference in New Issue
Block a user