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