mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-07 05:36:45 +02:00
CS fixes
This commit is contained in:
@@ -120,12 +120,12 @@ class SocketHandlerTest extends TestCase
|
||||
{
|
||||
$this->setMockHandler(array('fwrite'));
|
||||
|
||||
$callback = function($arg)
|
||||
{
|
||||
$callback = function($arg) {
|
||||
$map = array(
|
||||
'Hello world' => 6,
|
||||
'world' => false,
|
||||
);
|
||||
|
||||
return $map[$arg];
|
||||
};
|
||||
|
||||
@@ -143,12 +143,12 @@ class SocketHandlerTest extends TestCase
|
||||
{
|
||||
$this->setMockHandler(array('fwrite', 'streamGetMetadata'));
|
||||
|
||||
$callback = function($arg)
|
||||
{
|
||||
$callback = function($arg) {
|
||||
$map = array(
|
||||
'Hello world' => 6,
|
||||
'world' => 5,
|
||||
);
|
||||
|
||||
return $map[$arg];
|
||||
};
|
||||
|
||||
@@ -159,7 +159,6 @@ class SocketHandlerTest extends TestCase
|
||||
->method('streamGetMetadata')
|
||||
->will($this->returnValue(array('timed_out' => true)));
|
||||
|
||||
|
||||
$this->writeRecord('Hello world');
|
||||
}
|
||||
|
||||
@@ -171,9 +170,9 @@ class SocketHandlerTest extends TestCase
|
||||
$this->setMockHandler(array('fwrite', 'streamGetMetadata'));
|
||||
|
||||
$res = $this->res;
|
||||
$callback = function($string) use ($res)
|
||||
{
|
||||
$callback = function($string) use ($res) {
|
||||
fclose($res);
|
||||
|
||||
return strlen('Hello');
|
||||
};
|
||||
|
||||
@@ -201,12 +200,12 @@ class SocketHandlerTest extends TestCase
|
||||
{
|
||||
$this->setMockHandler(array('fwrite'));
|
||||
|
||||
$callback = function($arg)
|
||||
{
|
||||
$callback = function($arg) {
|
||||
$map = array(
|
||||
'Hello world' => 6,
|
||||
'world' => 5,
|
||||
);
|
||||
|
||||
return $map[$arg];
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user