bandwidthThrottle\tokenBucket\storage\PDOStorageTest::testBootstrapAddsRow PHP Метод

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

Tests bootstrap() adds a row to an existing table.
public testBootstrapAddsRow ( PDO $pdo )
$pdo PDO The PDO.
    public function testBootstrapAddsRow(\PDO $pdo)
    {
        $storageA = new PDOStorage("A", $pdo);
        $storageA->bootstrap(1);
        $this->storages[] = $storageA;
        $storageB = new PDOStorage("B", $pdo);
        $storageB->bootstrap(2);
        $this->storages[] = $storageB;
        $this->assertEquals(1, $storageA->getMicrotime());
        $this->assertEquals(2, $storageB->getMicrotime());
    }