コード例 #1
0
 public function setUp()
 {
     parent::setUp();
     $this->captured = new stdClass();
     $this->prototype = $this->createPrototype();
     /** @noinspection PhpParamsInspection */
     $this->mapper = new Mapper($this->mocks['adapter'], $this->prototype);
     /** @noinspection PhpParamsInspection */
     $this->mapper->setSqlFactory($this->mocks['sqlFactory']);
     $this->mapper->setResultsPerPage(self::RESULTS_PER_PAGE);
 }
コード例 #2
0
 public function setUp()
 {
     parent::setUp();
     $this->prototype = $this->createPrototype();
     $this->timestampPrototype = $this->createTimestampPrototype();
     $this->mapper = new Mapper($this->mocks['adapter'], $this->prototype);
     $this->mapper->setSqlFactory($this->mocks['sqlFactory']);
     $this->timestampMapper = new TimestampColumnMapper($this->mocks['adapter'], $this->timestampPrototype);
     $this->timestampMapper->setSqlFactory($this->mocks['sqlFactory']);
     $this->datetimeMapper = new DatetimeColumnMapper($this->mocks['adapter'], $this->timestampPrototype);
     $this->datetimeMapper->setSqlFactory($this->mocks['sqlFactory']);
     $this->differentPrimaryKeyMapper = new MapperWithDifferentPrimaryKey($this->mocks['adapter'], $this->prototype);
     $this->differentPrimaryKeyMapper->setSqlFactory($this->mocks['sqlFactory']);
 }