Skip to content

Instantly share code, notes, and snippets.

View mirfilip's full-sized avatar

Mirosław Filip mirfilip

  • Schibsted Tech Polska
  • Cracow
View GitHub Profile
@mirfilip
mirfilip / feed_memory_usage.php
Created July 27, 2017 12:47
Testing memory usage of Feed-IO
<?php
require __DIR__."/vendor/autoload.php";
$client = new GuzzleHttp\Client();
$feed = $argv[1];
echo "Reading $feed" . PHP_EOL . PHP_EOL;
print_mem_usage('before request');
@mirfilip
mirfilip / gist:941ede7a1c8a2b4b0fa8
Created June 16, 2015 13:47
Null or a valid string
<?php
require_once __DIR__ . '/../vendor/autoload.php';
/**
* Class InputFilterTest
*/
class InputFilterTest extends \PHPUnit_Framework_TestCase
{
/**
* @dataProvider provider