Fakerino\Test\Core\Database\DoctrineLayerTest::setUp PHP Метод

setUp() публичный Метод

public setUp ( )
    public function setUp()
    {
        $this->testTable = 'testTable';
        $this->connectionParams = array('user' => null, 'password' => null, 'memory' => true, 'driver' => 'pdo_sqlite');
        $this->dLayer = new DoctrineLayer($this->connectionParams);
        $sql = "CREATE TABLE `" . $this->testTable . "` (\n                `numberPk`\tINTEGER,\n                `number`\tINTEGER,\n                `text`\tTEXT,\n                `surname`\tTEXT,\n                `description`\tBLOB,\n                PRIMARY KEY(numberPk)\n                )";
        $this->dLayer->connect();
        DoctrineLayer::$conn->query($sql);
        $this->dLayer->setTable($this->testTable);
    }