protected function setUp() { if (!self::$supported) { $this->markTestSkipped('Predis is not available or Redis is not running.'); } parent::setUp(); $this->generator = new PredisStoreGenerator(); }
protected function putCode($path, Method $method) { // In the generated class, the repository is passed as argument. // Create a repository here so that we can run the code successfully. $method->getClass()->addImport(new Import('Puli\\Manager\\Tests\\Factory\\Generator\\Fixtures\\TestRepository')); $method->setBody(<<<EOF \$repo = new TestRepository(); {$method->getBody()} EOF ); parent::putCode($path, $method); }
protected function setUp() { parent::setUp(); $this->generator = new ArrayStoreGenerator(); }
protected function setUp() { parent::setUp(); $this->generator = new PathMappingRepositoryGenerator(); }
protected function setUp() { parent::setUp(); $this->generator = new FilesystemRepositoryGenerator(); }
protected function setUp() { parent::setUp(); $this->generator = new JsonFileStoreGenerator(); }