Skip to content

Commit c3dc25e

Browse files
Use ProphecyTrait to fix test warnings
1 parent 9df9384 commit c3dc25e

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@
1515
"dantleech/glob-finder": "^1.0"
1616
},
1717
"require-dev": {
18-
"phpunit/phpunit": "^8.5 || ^9.5",
18+
"phpunit/phpunit": "^9.5",
1919
"behat/behat": "^3.6",
2020
"phpspec/phpspec": "^6.0 || ^7.0",
2121
"jackalope/jackalope-doctrine-dbal": "^1.3",
22-
"jackalope/jackalope-jackrabbit": "^1.3"
22+
"jackalope/jackalope-jackrabbit": "^1.3",
23+
"phpspec/prophecy-phpunit": "^2.0"
2324
},
2425
"suggest": {
2526
"jackalope/jackalope-doctrine-dbal": "To connect to jackalope doctrine-dbal",

tests/PHPCR/Shell/Helper/NodeHelperTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@
1414

1515
use PHPCR\NodeInterface;
1616
use PHPUnit\Framework\TestCase;
17+
use Prophecy\PhpUnit\ProphecyTrait;
1718

1819
class NodeHelperTest extends TestCase
1920
{
21+
use ProphecyTrait;
22+
2023
protected $nodeHelper;
2124

2225
public function setUp(): void

tests/PHPCR/Shell/Phpcr/PhpcrSessionTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@
1414

1515
use PHPCR\PathNotFoundException;
1616
use PHPUnit\Framework\TestCase;
17+
use Prophecy\PhpUnit\ProphecyTrait;
1718

1819
class PhpcrSessionTest extends TestCase
1920
{
21+
use ProphecyTrait;
22+
2023
public function setUp(): void
2124
{
2225
$this->phpcr = $this->prophesize('PHPCR\SessionInterface');

0 commit comments

Comments
 (0)