public function setUp() { $testPimple = new \Pimple(); $testPimple['dewdrop-request'] = new Request(); require_once __DIR__ . '/../test-components/animals/Component.php'; $this->component = new \DewdropTest\Admin\Animals\Component($testPimple); $this->request = $this->component->getRequest(); $this->paths = $this->component->getPaths(); $this->isWp = $this->paths->isWp(); }
public function setUp() { if (Env::getInstance() instanceof Zf1Env) { $this->markTestSkipped('Zend Framework 1 environment does not support ComponentAbstract.'); } $testPimple = new \Pimple(); $testPimple['dewdrop-request'] = new Request(); require_once __DIR__ . '/../test-components/animals/Component.php'; $this->component = new \DewdropTest\Admin\Animals\Component($testPimple); $this->request = $this->component->getRequest(); $this->paths = $this->component->getPaths(); $this->isWp = $this->paths->isWp(); }