You are here

public function MemoryDataCollectorTest::testBytesConversion 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::testBytesConversion()

@dataProvider getBytesConversionTestData

File

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

Class

MemoryDataCollectorTest

Namespace

Symfony\Component\HttpKernel\Tests\DataCollector

Code

public function testBytesConversion($limit, $bytes) {
  $collector = new MemoryDataCollector();
  $method = new \ReflectionMethod($collector, 'convertToBytes');
  $method
    ->setAccessible(true);
  $this
    ->assertEquals($bytes, $method
    ->invoke($collector, $limit));
}