-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate unit and integration tests to new testing library
- Loading branch information
Showing
60 changed files
with
278 additions
and
452 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 1 addition & 21 deletions
22
src/it/php/rdbms/unittest/integration/MySQLDeadlockTest.class.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,5 @@ | ||
<?php namespace rdbms\unittest\integration; | ||
|
||
use unittest\Assert; | ||
/** | ||
* Deadlock test on mysql | ||
* | ||
*/ | ||
class MySQLDeadlockTest extends AbstractDeadlockTest { | ||
|
||
/** @return string */ | ||
protected function driverName() { return 'mysql'; } | ||
|
||
/** @return void */ | ||
#[After] | ||
public function tearDown() { | ||
parent::tearDown(); | ||
|
||
// Suppress "mysql_connect(): The mysql extension is deprecated [...]" | ||
foreach (\xp::$errors as $file => $errors) { | ||
if (strstr($file, 'MySQLConnection')) { | ||
unset(\xp::$errors[$file]); | ||
} | ||
} | ||
} | ||
protected static $DRIVER= 'mysql'; | ||
} |
8 changes: 3 additions & 5 deletions
8
src/it/php/rdbms/unittest/integration/MySQLIntegrationTest.class.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 1 addition & 8 deletions
9
src/it/php/rdbms/unittest/integration/PostgreSQLDeadlockTest.class.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,5 @@ | ||
<?php namespace rdbms\unittest\integration; | ||
|
||
use unittest\Assert; | ||
/** | ||
* Deadlock test on PostgreSQL | ||
* | ||
*/ | ||
class PostgreSQLDeadlockTest extends AbstractDeadlockTest { | ||
|
||
/** @return string */ | ||
protected function driverName() { return 'pgsql'; } | ||
protected static $DRIVER= 'pgsql'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 2 additions & 9 deletions
11
src/it/php/rdbms/unittest/integration/SQLiteIntegrationTest.class.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.