You are here

public function MemoryDataCollectorTest::testCollect in Zircon Profile 8.0

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

File

vendor/symfony/http-kernel/Tests/DataCollector/MemoryDataCollectorTest.php, line 20

Class

MemoryDataCollectorTest

Namespace

Symfony\Component\HttpKernel\Tests\DataCollector

Code

public function testCollect() {
  $collector = new MemoryDataCollector();
  $collector
    ->collect(new Request(), new Response());
  $this
    ->assertInternalType('integer', $collector
    ->getMemory());
  $this
    ->assertInternalType('integer', $collector
    ->getMemoryLimit());
  $this
    ->assertSame('memory', $collector
    ->getName());
}