"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "public_html/lists/base/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Tests/DataCollector/MemoryDataCollectorTest.php" between
phplist-3.4.5.tgz and phplist-3.4.6.tgz

About: phpList is a one-way email announcement delivery system for newsletters, publicity lists, notifications, and many other uses (requires PHP and MySQL).

MemoryDataCollectorTest.php  (phplist-3.4.5.tgz):MemoryDataCollectorTest.php  (phplist-3.4.6.tgz)
skipping to change at line 26 skipping to change at line 26
use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\DataCollector\MemoryDataCollector; use Symfony\Component\HttpKernel\DataCollector\MemoryDataCollector;
class MemoryDataCollectorTest extends TestCase class MemoryDataCollectorTest extends TestCase
{ {
public function testCollect() public function testCollect()
{ {
$collector = new MemoryDataCollector(); $collector = new MemoryDataCollector();
$collector->collect(new Request(), new Response()); $collector->collect(new Request(), new Response());
$this->assertInternalType('integer', $collector->getMemory()); $this->assertIsInt($collector->getMemory());
$this->assertInternalType('integer', $collector->getMemoryLimit()); $this->assertIsInt($collector->getMemoryLimit());
$this->assertSame('memory', $collector->getName()); $this->assertSame('memory', $collector->getName());
} }
/** @dataProvider getBytesConversionTestData */ /** @dataProvider getBytesConversionTestData */
public function testBytesConversion($limit, $bytes) public function testBytesConversion($limit, $bytes)
{ {
$collector = new MemoryDataCollector(); $collector = new MemoryDataCollector();
$method = new \ReflectionMethod($collector, 'convertToBytes'); $method = new \ReflectionMethod($collector, 'convertToBytes');
$method->setAccessible(true); $method->setAccessible(true);
$this->assertEquals($bytes, $method->invoke($collector, $limit)); $this->assertEquals($bytes, $method->invoke($collector, $limit));
 End of changes. 1 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)