Skip to content

Commit

Permalink
Add Prophecy PHPUnit bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz committed Jul 15, 2024
1 parent 8cc3e0b commit 9586b22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Tests/Unit/EventListener/SetThemeEventListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

use PHPUnit\Framework\TestCase;
use Prophecy\Argument;
use Prophecy\PhpUnit\ProphecyTrait;
use Prophecy\Prophecy\ObjectProphecy;
use Sulu\Bundle\PreviewBundle\Preview\Events\PreRenderEvent;
use Sulu\Bundle\ThemeBundle\EventListener\SetThemeEventListener;
Expand All @@ -29,6 +30,8 @@

class SetThemeEventListenerTest extends TestCase
{
use ProphecyTrait;

/**
* @var ThemeRepositoryInterface|ObjectProphecy
*/
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"jangregor/phpstan-prophecy": "^1.0",
"php-cs-fixer/shim": "^3.1",
"phpspec/prophecy": "^1.15",
"phpspec/prophecy-phpunit": "^2.0",
"phpstan/phpstan": "^1.4",
"phpstan/phpstan-doctrine": "^1.2",
"phpstan/phpstan-phpunit": "^1.0",
Expand Down

0 comments on commit 9586b22

Please sign in to comment.