|
12 | 12 | namespace Symfony\Component\HttpKernel\Tests\DataCollector;
|
13 | 13 |
|
14 | 14 | use Symfony\Component\HttpKernel\DataCollector\LoggerDataCollector;
|
15 |
| -use Symfony\Component\HttpKernel\Debug\ErrorHandler; |
16 | 15 |
|
17 | 16 | class LoggerDataCollectorTest extends \PHPUnit_Framework_TestCase
|
18 | 17 | {
|
@@ -66,14 +65,20 @@ public function getCollectTestData()
|
66 | 65 | array(
|
67 | 66 | 1,
|
68 | 67 | array(
|
69 |
| - array('message' => 'foo', 'context' => array('type' => ErrorHandler::TYPE_DEPRECATION), 'priority' => 100, 'priorityName' => 'DEBUG'), |
70 |
| - array('message' => 'foo2', 'context' => array('type' => ErrorHandler::TYPE_DEPRECATION), 'priority' => 100, 'priorityName' => 'DEBUG'), |
71 |
| - array('message' => 'foo3', 'context' => array('type' => E_USER_WARNING, 'scream' => 0), 'priority' => 100, 'priorityName' => 'DEBUG'), |
| 68 | + array('message' => 'foo', 'context' => array('type' => E_DEPRECATED, 'level' => E_ALL), 'priority' => 100, 'priorityName' => 'DEBUG'), |
| 69 | + array('message' => 'foo2', 'context' => array('type' => E_USER_DEPRECATED, 'level' => E_ALL), 'priority' => 100, 'priorityName' => 'DEBUG'), |
72 | 70 | ),
|
73 | 71 | null,
|
74 | 72 | 2,
|
| 73 | + 0, |
| 74 | + array(100 => array('count' => 2, 'name' => 'DEBUG')), |
| 75 | + ), |
| 76 | + array( |
| 77 | + 1, |
| 78 | + array(array('message' => 'foo3', 'context' => array('type' => E_USER_WARNING, 'level' => 0), 'priority' => 100, 'priorityName' => 'DEBUG')), |
| 79 | + array(array('message' => 'foo3', 'context' => array('type' => E_USER_WARNING, 'level' => 0, 'scream' => true), 'priority' => 100, 'priorityName' => 'DEBUG')), |
| 80 | + 0, |
75 | 81 | 1,
|
76 |
| - array(100 => array('count' => 3, 'name' => 'DEBUG')), |
77 | 82 | ),
|
78 | 83 | );
|
79 | 84 | }
|
|
0 commit comments