コード例 #1
0
 public function setUp()
 {
     parent::setUp();
     $this->storage = $this->getMock('Koine\\Repository\\Storage\\StorageInterface');
     $this->repository = new IdAwareRepository($this->storage);
     $this->hydrator = new ClassMethods();
     $this->entityPrototype = new TestTableEntity();
     $this->repository->setHydrator($this->hydrator);
     $this->repository->setEntityPrototype($this->entityPrototype);
 }
コード例 #2
0
ファイル: MySqlTest.php プロジェクト: koinephp/repository
 public function setUp()
 {
     parent::setUp();
     $this->object = new MySql($this->getConnection(), 'test_table');
 }