public function testBefore(TestEvent $e) { // Clear cache if env var is not set or is set to true if (false === getenv('ADDENDUM_CACHE_CLEAR') || getenv('ADDENDUM_CACHE_CLEAR')) { Addendum::cacheClear(); exec('rm -rf vendor/addendum/*'); } }
public function _after() { Addendum::cacheClear(); }