public function StopwatchEventTest::testGetCategory

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/Debug/StopwatchEventTest.php, line 29

Class

StopwatchEventTest
StopwatchEventTest

Namespace

Symfony\Component\HttpKernel\Tests\Debug

Code

public function testGetCategory() {
  $event = new StopwatchEvent(microtime(true) * 1000);
  $this
    ->assertEquals('default', $event
    ->getCategory());
  $event = new StopwatchEvent(microtime(true) * 1000, 'cat');
  $this
    ->assertEquals('cat', $event
    ->getCategory());
}