Open Journal Systems
3.3.0
ArrayLogAdapterTest.php
1
<?php
2
3
namespace
Guzzle\Tests\Log
;
4
5
use
Guzzle\Log\ArrayLogAdapter
;
6
7
class
ArrayLogAdapterTest
extends
\Guzzle\Tests\GuzzleTestCase
8
{
9
public
function
testLog
()
10
{
11
$adapter =
new
ArrayLogAdapter
();
12
$adapter->log(
'test'
, \LOG_NOTICE,
'127.0.0.1'
);
13
$this->assertEquals(array(array(
'message'
=>
'test'
,
'priority'
=> \LOG_NOTICE,
'extras'
=>
'127.0.0.1'
)), $adapter->getLogs());
14
}
15
16
public
function
testClearLog
()
17
{
18
$adapter =
new
ArrayLogAdapter
();
19
$adapter->log(
'test'
, \LOG_NOTICE,
'127.0.0.1'
);
20
$adapter->clearLogs();
21
$this->assertEquals(array(), $adapter->getLogs());
22
}
23
}
Guzzle\Tests\GuzzleTestCase
Definition:
GuzzleTestCase.php:22
Guzzle\Tests\Log\ArrayLogAdapterTest\testClearLog
testClearLog()
Definition:
ArrayLogAdapterTest.php:16
Guzzle\Tests\Log
Definition:
ArrayLogAdapterTest.php:3
Guzzle\Log\ArrayLogAdapter
Definition:
ArrayLogAdapter.php:8
Guzzle\Tests\Log\ArrayLogAdapterTest\testLog
testLog()
Definition:
ArrayLogAdapterTest.php:9
Guzzle\Tests\Log\ArrayLogAdapterTest
Definition:
ArrayLogAdapterTest.php:7
plugins
paymethod
paypal
lib
vendor
guzzle
guzzle
tests
Guzzle
Tests
Log
ArrayLogAdapterTest.php
Generated on Fri Aug 28 2020 14:50:41 for Open Journal Systems by
1.8.17