Add some more classes

Also updates the PHPUnit and PHPUnit HHI used for tests.
parent 1647b1a0
Pipeline #111 failed with stage
in 44 seconds
......@@ -2,3 +2,4 @@
.project
vendor
.DS_Store
tags
......@@ -22,5 +22,6 @@
},
"require-dev": {
"phpunit/dbunit": "2.0.x-dev"
}
},
"prefer-stable": true
}
This diff is collapsed.
<?hh // decl
interface PHPUnit_Extensions_Database_DB_IDatabaseConnection {
public function close(): void;
public function createDataSet(
?array $tableNames = NULL,
): PHPUnit_Extensions_Database_DataSet_IDataSet;
public function createQueryTable(
string $resultName,
string $sql,
): PHPUnit_Extensions_Database_DataSet_ITable;
public function getConnection(
): PHPUnit_Extensions_Database_DB_IDatabaseConnection;
public function getMetaData(): PHPUnit_Extensions_Database_DB_IMetaData;
public function getRowCount(
string $tableName,
?string $whereClause = NULL,
): int;
public function getSchema(): ?string;
public function quoteSchemaObject(string $object): string;
public function getTruncateCommand(): string;
public function allowsCascading(): bool;
public function disablePrimaryKeys(string $tableName): void;
public function enablePrimaryKeys(string $tableName): void;
}
<?hh // decl
interface PHPUnit_Extensions_Database_DB_IMetaData {
public function getTableNames(): array<string>;
public function getTableColumns(string $tableName): array<string>;
public function getTablePrimaryKeys(string $tableName): array<string>;
public function getSchema(): ?string;
public function quoteSchemaObject(string $object): string;
public function allowsCascading(): bool;
public function disablePrimaryKeys(bool $tableName): void;
public function enablePrimaryKeys(bool $tableName): void;
}
......@@ -8,7 +8,7 @@ class PHPUnit_Extensions_Database_DataSet_DefaultTableIterator
);
public function getTable(): PHPUnit_Extensions_Database_DataSet_ITable;
public function getTableMetaData(
): PHPUnit_Extensions_Database_ITableMetaData;
): PHPUnit_Extensions_Database_DataSet_ITableMetaData;
public function current(): PHPUnit_Extensions_Database_DataSet_ITable;
public function key(): string;
public function next(): void;
......
......@@ -4,5 +4,5 @@ interface PHPUnit_Extensions_Database_DataSet_ITableIterator
extends Iterator<PHPUnit_Extensions_Database_DataSet_ITable> {
public function getTable(): PHPUnit_Extensions_Database_DataSet_ITable;
public function getTableMetaData(
): PHPUnit_Extensions_Database_ITableMetaData;
): PHPUnit_Extensions_Database_DataSet_ITableMetaData;
}
......@@ -6,5 +6,5 @@ class PHPUnit_Extensions_Database_DefaultTester
protected PHPUnit_Extensions_Database_DB_IDatabaseConnection $connection,
);
public function getConnection(
): PHPUnit_Extensions_Database_DB_IDatabaseConection;
): PHPUnit_Extensions_Database_DB_IDatabaseConnection;
}
<?hh // decl
interface PHPUnit_Extensions_Database_Operation_IDatabaseOperation {
public function execute(
PHPUnit_Extensions_Database_DB_IDatabaseConnection $connection,
PHPUnit_Extensions_Database_DataSet_IDataSet $dataSet,
);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment