Skip to content

Instantly share code, notes, and snippets.

View edorian's full-sized avatar

Volker Dusch edorian

View GitHub Profile
@edorian
edorian / BaseTestCase.php
Created November 25, 2012 13:57 — forked from digitalkaoz/BaseTestCase.php
PHPUnit Cache Clear beforeClass
<?php
namespace Lingwa\Bundle\CoreBundle\Test;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
abstract class BaseTestCase extends WebTestCase
{
static $cleared = false;
public static function setupBeforeClass()
@edorian
edorian / BaseTestCase.php
Created November 25, 2012 13:57 — forked from digitalkaoz/BaseTestCase.php
PHPUnit Cache Clear beforeClass
<?php
namespace Lingwa\Bundle\CoreBundle\Test;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
abstract class BaseTestCase extends WebTestCase
{
static $cleared = false;
public static function setupBeforeClass()
@edorian
edorian / clean-use.php
Created February 3, 2012 08:56 — forked from lapistano/clean-use.php
Script to clean unnecessary PHP use statements
#!/usr/bin/env php
<?php
$paths = array();
if (isset($_SERVER['argv']))
{
$paths = $_SERVER['argv'];
array_shift($paths);
if (!$paths)