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); }
public function setUp() { parent::setUp(); $this->object = new MySql($this->getConnection(), 'test_table'); }