コード例 #1
0
ファイル: Cache.php プロジェクト: mongator/mongator
 protected function tearDown()
 {
     if ($this->cache) {
         $this->cache->clear();
     }
     parent::tearDown();
 }
コード例 #2
0
ファイル: CoreEventTest.php プロジェクト: mongator/mongator
 public function setUp()
 {
     parent::setUp();
     $this->dispatcher = $this->getMock('Symfony\\Component\\EventDispatcher\\EventDispatcher');
     $this->mongator->setEventDispatcher($this->dispatcher);
 }
コード例 #3
0
 protected function setUp()
 {
     parent::setUp();
     $this->repository = $this->mongator->getRepository('Model\\Article');
     $this->indexManager = new IndexManager($this->repository);
 }
コード例 #4
0
 protected function setUp()
 {
     parent::setUp();
     $this->repository = $this->mongator->getRepository('Model\\FieldTypeExamples');
 }
コード例 #5
0
 public function setUp()
 {
     parent::setUp();
     $this->factory = new Factory($this->mongator, $this->faker);
 }
コード例 #6
0
ファイル: QueryTest.php プロジェクト: mongator/mongator
 protected function setUp()
 {
     parent::setUp();
     $this->identityMap = $this->mongator->getRepository('Model\\Article')->getIdentityMap();
     $this->query = new \Model\ArticleQuery($this->mongator->getRepository('Model\\Article'));
 }
コード例 #7
0
ファイル: ConfigTest.php プロジェクト: mongator/factory
 public function setUp()
 {
     parent::setUp();
     $this->factory = new Factory($this->mongator, $this->faker);
     $this->instance = new Config($this->factory, 'Model\\Article');
 }