Skip to content

Commit

Permalink
skip otherwise failing tests with PHP 7.3 and PostgreSQL
Browse files Browse the repository at this point in the history
  • Loading branch information
craue committed Aug 30, 2023
1 parent ce0881a commit 00e4ed1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Tests/PhotoUploadFlowTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ class PhotoUploadFlowTest extends IntegrationTestCase {

const IMAGE = '/Fixtures/blue-pixel.png';

protected function setUp() : void {
if (\version_compare(\PHP_VERSION, '7.4', '<') && ($_ENV['DB_FLAVOR'] ?? '') === 'postgresql') {
$this->markTestSkipped('Would fail because SerializableFile::__serialize is only supported as of PHP 7.4.');
}

parent::setUp();
}

public function testPhotoUpload() {
$image = __DIR__ . self::IMAGE;

Expand Down
4 changes: 4 additions & 0 deletions Tests/Storage/DataManagerIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ class DataManagerIntegrationTest extends IntegrationTestCase {
* Ensure that a file uploaded within a flow is saved and restored correctly.
*/
public function testSaveLoad_file() : void {
if (\version_compare(\PHP_VERSION, '7.4', '<') && ($_ENV['DB_FLAVOR'] ?? '') === 'postgresql') {
$this->markTestSkipped('Would fail because SerializableFile::__serialize is only supported as of PHP 7.4.');
}

$session = new Session(new MockArraySessionStorage());
$session->setId('12345');

Expand Down

0 comments on commit 00e4ed1

Please sign in to comment.