Ejemplo n.º 1
0
 public function setUp()
 {
     parent::setUp();
     $this->mysqlConnectionMock = m::mock('\\Pixie\\ConnectionAdapters\\Mysql');
     $this->mysqlConnectionMock->shouldReceive('connect')->andReturn($this->mockPdo);
     $this->container->setInstance('\\Pixie\\ConnectionAdapters\\Mysqlmock', $this->mysqlConnectionMock);
     $this->connection = new Connection('mysqlmock', array('prefix' => 'cb_'), null, $this->container);
 }
 public function setUp()
 {
     parent::setUp();
     $this->builder = new QueryBuilder\QueryBuilderHandler($this->mockConnection);
 }