Skip to content

Commit

Permalink
Update dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
prwater committed Nov 15, 2020
1 parent 2ea5b44 commit da63a21
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"require-dev": {
"phpunit/phpunit": "^9.0",
"phing/phing": "^2.0",
"setbased/php-stratum": "^5.0"
"setbased/php-stratum": "^6.0"
},
"autoload": {
"psr-4": {
Expand Down
16 changes: 8 additions & 8 deletions test/InitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function testInMemory1()
{
$dl = new SqlitePdoDataLayer();
$version = $dl->executeSingleton1('select sqlite_version()');
self::assertRegExp('/^[0-9.]+$/', $version);
self::assertMatchesRegularExpression('/^[0-9.]+$/', $version);
}

//--------------------------------------------------------------------------------------------------------------------
Expand All @@ -29,7 +29,7 @@ public function testInMemory2()
{
$dl = new SqlitePdoDataLayer(null, 'test/ddl/0100_create_tables.sql');
$version = $dl->executeSingleton1('select sqlite_version()');
self::assertRegExp('/^[0-9.]+$/', $version);
self::assertMatchesRegularExpression('/^[0-9.]+$/', $version);

}

Expand All @@ -42,7 +42,7 @@ public function testPath1()
$path = __DIR__.'/test.db';
$dl = new SqlitePdoDataLayer($path);
$version = $dl->executeSingleton1('select sqlite_version()');
self::assertRegExp('/^[0-9.]+$/', $version);
self::assertMatchesRegularExpression('/^[0-9.]+$/', $version);

unlink($path);
}
Expand All @@ -56,9 +56,9 @@ public function testPath2()
$path = __DIR__.'/test.db';
$dl = new SqlitePdoDataLayer($path, 'test/ddl/0100_create_tables.sql', true);
$version = $dl->executeSingleton1('select sqlite_version()');
self::assertRegExp('/^[0-9.]+$/', $version);
self::assertMatchesRegularExpression('/^[0-9.]+$/', $version);
$dl->close();
self::assertFileNotExists($path);
self::assertFileDoesNotExist($path);
}

//--------------------------------------------------------------------------------------------------------------------
Expand All @@ -71,9 +71,9 @@ public function testPath3()
file_put_contents($path, __METHOD__);
$dl = new SqlitePdoDataLayer($path, 'test/ddl/0100_create_tables.sql', true);
$version = $dl->executeSingleton1('select sqlite_version()');
self::assertRegExp('/^[0-9.]+$/', $version);
self::assertMatchesRegularExpression('/^[0-9.]+$/', $version);
$dl->close();
self::assertFileNotExists($path);
self::assertFileDoesNotExist($path);
}

//--------------------------------------------------------------------------------------------------------------------
Expand All @@ -96,7 +96,7 @@ public function testPdo()
$pdo = new \PDO('sqlite:'.$path);
$dl = new SqlitePdoDataLayer($pdo);
$version = $dl->executeSingleton1('select sqlite_version()');
self::assertRegExp('/^[0-9.]+$/', $version);
self::assertMatchesRegularExpression('/^[0-9.]+$/', $version);

unlink($path);
}
Expand Down
6 changes: 3 additions & 3 deletions test/TestDataLayer.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function tstMagicConstant02(): int
public function tstMagicConstant03(): string
{
$query = <<< EOT
select '/opt/Projects/SetBased/Stratum/php-stratum-sqlite-pdo/test/psql/tst_magic_constant03.psql';
select '/opt/Projects/DatabaseStratum/php-stratum-sqlite-pdo/test/psql/tst_magic_constant03.psql';
EOT;
$query = str_repeat(PHP_EOL, 6).$query;

Expand All @@ -67,7 +67,7 @@ public function tstMagicConstant03(): string
public function tstMagicConstant04(): string
{
$query = <<< EOT
select '/opt/Projects/SetBased/Stratum/php-stratum-sqlite-pdo/test/psql';
select '/opt/Projects/DatabaseStratum/php-stratum-sqlite-pdo/test/psql';
EOT;
$query = str_repeat(PHP_EOL, 6).$query;

Expand All @@ -83,7 +83,7 @@ public function tstMagicConstant04(): string
public function tstMagicConstant05(): string
{
$query = <<< EOT
select '/opt/Projects/SetBased/Stratum/php-stratum-sqlite-pdo/test/psql/ test_escape '' " @ $ ! .';
select '/opt/Projects/DatabaseStratum/php-stratum-sqlite-pdo/test/psql/ test_escape '' " @ $ ! .';
EOT;
$query = str_repeat(PHP_EOL, 6).$query;

Expand Down

0 comments on commit da63a21

Please sign in to comment.