Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Repeat a string
<?php str_repeat(string $string, int $times): string
<?php return;
}
$this->types = str_repeat('s', $paramCount);
$this->_bindedValues = array_fill(1, $paramCount, null);
}
<?php private function bindUntypedValues(array $values)
{
$params = [];
$types = str_repeat('s', count($values));
foreach ($values as &$v) {
$params[] =& $v;
<?php self::markTestIncomplete('The oci8 driver does not support stream resources as parameters');
}
$longBlob = str_repeat('x', 4 * 8192); // send 4 chunks
$this->connection->insert('blob_table', [
'id' => 1,
'clobcolumn' => 'ignored',
<?php public function testMaxIdentifierLengthLimitWithAutoIncrement(): void
{
$platform = $this->connection->getDatabasePlatform();
$tableName = str_repeat('x', $platform->getMaxIdentifierLength());
$columnName = str_repeat('y', $platform->getMaxIdentifierLength());
$table = new Table($tableName);
$table->addColumn($columnName, 'integer', ['autoincrement' => true]);
<?php {
$platform = $this->connection->getDatabasePlatform();
$tableName = str_repeat('x', $platform->getMaxIdentifierLength());
$columnName = str_repeat('y', $platform->getMaxIdentifierLength());
$table = new Table($tableName);
$table->addColumn($columnName, 'integer', ['autoincrement' => true]);
$table->setPrimaryKey([$columnName]);
<?php {
return [
'string' => ['string', 'ABCDEFGabcdefg'],
'text' => ['text', str_repeat('foo ', 1000)],
];
}
<?php $c = $this->platform->getIdentifierQuoteCharacter();
self::assertEquals($c . 'test' . $c, $this->platform->quoteIdentifier('test'));
self::assertEquals($c . 'test' . $c . '.' . $c . 'test' . $c, $this->platform->quoteIdentifier('test.test'));
self::assertEquals(str_repeat($c, 4), $this->platform->quoteIdentifier($c));
}
public function testQuoteSingleIdentifier(): void
<?php $c = $this->platform->getIdentifierQuoteCharacter();
self::assertEquals($c . 'test' . $c, $this->platform->quoteSingleIdentifier('test'));
self::assertEquals($c . 'test.test' . $c, $this->platform->quoteSingleIdentifier('test.test'));
self::assertEquals(str_repeat($c, 4), $this->platform->quoteSingleIdentifier($c));
}