function testGetConnection()
 {
     $conn = Factory::getConnection('example.com');
     self::assertNotNull($conn);
     self::assertEquals('resource', gettype($conn));
     $conn2 = Factory::getConnection('example.com');
     self::assertSame($conn, $conn2);
 }
Example #2
0
 public function testGetConnection()
 {
     $conn = Factory::getConnection('example.com');
     self::assertNotNull($conn);
     self::assertInternalType('resource', $conn);
     $conn2 = Factory::getConnection('example.com');
     self::assertSame($conn, $conn2);
     $conn3 = Factory::getConnection('example.com', true);
     self::assertNotNull($conn3);
     self::assertInternalType('resource', $conn3);
     $conn4 = Factory::getConnection('example.com', true);
     self::assertSame($conn3, $conn4);
 }