Skip to content

Commit

Permalink
Fix phpspec/prophecy-phpunit compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz committed Jun 10, 2024
1 parent 5c31ae7 commit 6f5df8d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions Tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
}

require $file;
require_once __DIR__ . '/prophecy_php_7_2.php';

// Load cached env vars if the .env.local.php file exists
// Run "composer dump-env prod" to create it (requires symfony/flex >=1.2)
Expand Down
18 changes: 18 additions & 0 deletions Tests/prophecy_php_7_2.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

/*
* This file is part of Sulu.
*
* (c) Sulu GmbH
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Prophecy\PhpUnit; // BC bridge for PHP 7.2 where we can not install phpspec/prophecy-phpunit package

if (!\trait_exists(ProphecyTrait::class)) {
trait ProphecyTrait
{
}
}

0 comments on commit 6f5df8d

Please sign in to comment.