Ejemplo n.º 1
0
 /**
  * @test
  */
 public function initWithArray()
 {
     $ConnectorFactory = new ConnectorFactory($this->config['connections']['mysql']);
     $actual = $ConnectorFactory->make();
     $this->assertInstanceOf('Poulsen\\Connectors\\MySQL', $actual);
 }
Ejemplo n.º 2
0
 /**
  * @param ConnectorFactory $connectorFactory
  */
 public function __construct(ConnectorFactory $connectorFactory)
 {
     $Instance = $connectorFactory->make();
     $this->DB = $Instance->connect();
 }