Example #1
0
 /**
  * Set up the environment.
  *
  * @return \Phalcon\DiInterface
  */
 private function setupDI()
 {
     $di = $this->tester->getDi();
     $di::reset();
     //        $this->tester->haveServiceInDi('session', function() {
     //            return new PhalconMemorySession();
     //        }, true);
     $this->tester->haveServiceInDi('request', function () {
         return new Request();
     }, true);
     return $di;
 }
Example #2
0
 /**
  * Executed before each test
  */
 protected function _before()
 {
     $this->tester->haveServiceInDi('slug', function () {
         return new Slug();
     });
 }