From 8826a940418963d2051d352c90069cdbbbffbfbe Mon Sep 17 00:00:00 2001 From: Pablo de Leon Belloc Date: Sun, 1 Apr 2012 21:11:25 -0300 Subject: [PATCH] Yet another CS fix on SocketHandlerTest --- tests/Monolog/Handler/SocketHandlerTest.php | 54 +++++++++++---------- 1 file changed, 29 insertions(+), 25 deletions(-) diff --git a/tests/Monolog/Handler/SocketHandlerTest.php b/tests/Monolog/Handler/SocketHandlerTest.php index ba969c29..eada7373 100644 --- a/tests/Monolog/Handler/SocketHandlerTest.php +++ b/tests/Monolog/Handler/SocketHandlerTest.php @@ -121,13 +121,14 @@ class SocketHandlerTest extends TestCase { $this->setMockHandler(array('fwrite')); - $callback = function($arg) { - $map = array( - 'Hello world' => 6, - 'world' => false, - ); - return $map[$arg]; - }; + $callback = function($arg) + { + $map = array( + 'Hello world' => 6, + 'world' => false, + ); + return $map[$arg]; + }; $this->handler->expects($this->exactly(2)) ->method('fwrite') @@ -143,13 +144,14 @@ class SocketHandlerTest extends TestCase { $this->setMockHandler(array('fwrite', 'stream_get_meta_data')); - $callback = function($arg) { - $map = array( - 'Hello world' => 6, - 'world' => 5, - ); - return $map[$arg]; - }; + $callback = function($arg) + { + $map = array( + 'Hello world' => 6, + 'world' => 5, + ); + return $map[$arg]; + }; $this->handler->expects($this->exactly(1)) ->method('fwrite') @@ -170,10 +172,11 @@ class SocketHandlerTest extends TestCase $this->setMockHandler(array('fwrite', 'stream_get_meta_data')); $res = $this->res; - $callback = function($string) use ($res) { - fclose($res); - return strlen('Hello'); - }; + $callback = function($string) use ($res) + { + fclose($res); + return strlen('Hello'); + }; $this->handler->expects($this->exactly(1)) ->method('fwrite') @@ -199,13 +202,14 @@ class SocketHandlerTest extends TestCase { $this->setMockHandler(array('fwrite')); - $callback = function($arg) { - $map = array( - 'Hello world' => 6, - 'world' => 5, - ); - return $map[$arg]; - }; + $callback = function($arg) + { + $map = array( + 'Hello world' => 6, + 'world' => 5, + ); + return $map[$arg]; + }; $this->handler->expects($this->exactly(2)) ->method('fwrite')