protected function setupDriver($useBuiltin)
 {
     if ($useBuiltin) {
         $factory = new WeaselDefaultAnnotationDrivenFactory();
         $driver = $factory->getJsonDriverInstance();
     } else {
         $factory = new WeaselDoctrineAnnotationDrivenFactory();
         $driver = $factory->getJsonDriverInstance();
     }
     $this->mapper = $factory->getJsonMapperInstance();
     $this->driver = $driver;
 }
Пример #2
0
 protected function setUp()
 {
     parent::setUp();
     $factory = new WeaselDefaultAnnotationDrivenFactory();
     $this->_mapper = $factory->getJsonMapperInstance();
 }