Skip to content

Commit

Permalink
github action - don't test on php 8.4 yet
Browse files Browse the repository at this point in the history
  • Loading branch information
bkdotcom committed Oct 15, 2024
1 parent 674d444 commit f984104
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
matrix:
# windows-latest, macOS-latest
operating-system: [ubuntu-latest]
php-version: ['5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
php-version: ['5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
name: PHP ${{ matrix.php-version }} Test on ${{ matrix.operating-system }}
# services:
# mysql:
Expand Down
31 changes: 18 additions & 13 deletions tests/Debug/Collector/MysqliTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -502,25 +502,30 @@ public function testReleaseSavepoint()

$result4 = self::$client->release_savepoint('Sally');
$line = __LINE__ - 1;
/*
if (PHP_VERSION_ID < 70000 || \mysqli_get_client_version() <= 50082) {
\bdk\Debug::varDump('client version', \mysqli_get_client_version());
// https://bugs.mysql.com/bug.php?id=26288
self::assertTrue($result4);
return;
}
self::assertFalse($result4);
$logEntry = $this->helper->logEntryToArray($this->debug->data->get('log/__end__'));
self::assertSame(array(
'method' => 'warn',
'args' => array('SAVEPOINT Sally does not exist'),
'meta' => array(
'channel' => 'general.MySqli',
'detectFiles' => true,
'evalLine' => null,
'file' => __FILE__,
'line' => $line,
'uncollapse' => true,
),
), $logEntry);
*/
if ($result4 === false) {
$logEntry = $this->helper->logEntryToArray($this->debug->data->get('log/__end__'));
self::assertSame(array(
'method' => 'warn',
'args' => array('SAVEPOINT Sally does not exist'),
'meta' => array(
'channel' => 'general.MySqli',
'detectFiles' => true,
'evalLine' => null,
'file' => __FILE__,
'line' => $line,
'uncollapse' => true,
),
), $logEntry);
}
}

public function testRollback()
Expand Down

0 comments on commit f984104

Please sign in to comment.