This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/tests/Symfony/Tests/Component/HttpKernel/DataCollector/MemoryDataCollectorTest.php
2011-04-15 21:12:02 +02:00

31 lines
785 B
PHP

<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Tests\Component\HttpKernel\DataCollector;
use Symfony\Component\HttpKernel\DataCollector\MemoryDataCollector;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
class MemoryDataCollectorTest extends \PHPUnit_Framework_TestCase
{
public function testCollect()
{
$c = new MemoryDataCollector();
$c->collect(new Request(), new Response());
$this->assertInternalType('integer',$c->getMemory());
$this->assertSame('memory',$c->getName());
}
}