Ejemplo n.º 1
0
 /**
  * @expectedException \Exception
  * @expectedExceptionMessage Connection "foo" is already connected.
  */
 public function testSetConnectionError()
 {
     $mockConn = m::mock("Phormium\\Connection");
     $mockConn->shouldReceive('inTransaction')->once()->andReturn(false);
     DB::setConnection('foo', $mockConn);
     DB::setConnection('foo', $mockConn);
 }