You are here

public function LoggerDataCollectorTest::getCollectTestData in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Tests/DataCollector/LoggerDataCollectorTest.php \Symfony\Component\HttpKernel\Tests\DataCollector\LoggerDataCollectorTest::getCollectTestData()

File

vendor/symfony/http-kernel/Tests/DataCollector/LoggerDataCollectorTest.php, line 41

Class

LoggerDataCollectorTest

Namespace

Symfony\Component\HttpKernel\Tests\DataCollector

Code

public function getCollectTestData() {
  return array(
    array(
      1,
      array(
        array(
          'message' => 'foo',
          'context' => array(),
          'priority' => 100,
          'priorityName' => 'DEBUG',
        ),
      ),
      null,
      0,
      0,
    ),
    array(
      1,
      array(
        array(
          'message' => 'foo',
          'context' => array(
            'foo' => fopen(__FILE__, 'r'),
          ),
          'priority' => 100,
          'priorityName' => 'DEBUG',
        ),
      ),
      array(
        array(
          'message' => 'foo',
          'context' => array(
            'foo' => 'Resource(stream)',
          ),
          'priority' => 100,
          'priorityName' => 'DEBUG',
        ),
      ),
      0,
      0,
    ),
    array(
      1,
      array(
        array(
          'message' => 'foo',
          'context' => array(
            'foo' => new \stdClass(),
          ),
          'priority' => 100,
          'priorityName' => 'DEBUG',
        ),
      ),
      array(
        array(
          'message' => 'foo',
          'context' => array(
            'foo' => 'Object(stdClass)',
          ),
          'priority' => 100,
          'priorityName' => 'DEBUG',
        ),
      ),
      0,
      0,
    ),
    array(
      1,
      array(
        array(
          'message' => 'foo',
          'context' => array(
            'type' => E_DEPRECATED,
            'level' => E_ALL,
          ),
          'priority' => 100,
          'priorityName' => 'DEBUG',
        ),
        array(
          'message' => 'foo2',
          'context' => array(
            'type' => E_USER_DEPRECATED,
            'level' => E_ALL,
          ),
          'priority' => 100,
          'priorityName' => 'DEBUG',
        ),
      ),
      null,
      2,
      0,
      array(
        100 => array(
          'count' => 2,
          'name' => 'DEBUG',
        ),
      ),
    ),
    array(
      1,
      array(
        array(
          'message' => 'foo3',
          'context' => array(
            'type' => E_USER_WARNING,
            'level' => 0,
            'file' => __FILE__,
            'line' => 123,
          ),
          'priority' => 100,
          'priorityName' => 'DEBUG',
        ),
      ),
      array(
        array(
          'message' => 'foo3',
          'context' => array(
            'type' => E_USER_WARNING,
            'level' => 0,
            'file' => __FILE__,
            'line' => 123,
            'scream' => true,
          ),
          'priority' => 100,
          'priorityName' => 'DEBUG',
        ),
      ),
      0,
      1,
    ),
    array(
      1,
      array(
        array(
          'message' => 'foo3',
          'context' => array(
            'type' => E_USER_WARNING,
            'level' => 0,
            'file' => __FILE__,
            'line' => 123,
          ),
          'priority' => 100,
          'priorityName' => 'DEBUG',
        ),
        array(
          'message' => 'foo3',
          'context' => array(
            'type' => E_USER_WARNING,
            'level' => -1,
            'file' => __FILE__,
            'line' => 123,
          ),
          'priority' => 100,
          'priorityName' => 'DEBUG',
        ),
      ),
      array(
        array(
          'message' => 'foo3',
          'context' => array(
            'type' => E_USER_WARNING,
            'level' => -1,
            'file' => __FILE__,
            'line' => 123,
            'errorCount' => 2,
          ),
          'priority' => 100,
          'priorityName' => 'DEBUG',
        ),
      ),
      0,
      1,
    ),
  );
}