Skip to content

Commit 3eb8fd6

Browse files
removes deprecation messages when running tests by switching to prophecy trait
1 parent 62bcc37 commit 3eb8fd6

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
@@ -41,7 +41,8 @@
4141
"phpunit/phpunit": "^7.5|^9.0|^10.0",
4242
"mikey179/vfsstream": "^1.6",
4343
"phpspec/prophecy": "^1.10",
44-
"friendsofphp/php-cs-fixer": "3.4.0"
44+
"friendsofphp/php-cs-fixer": "3.4.0",
45+
"phpspec/prophecy-phpunit": "^2.3"
4546
},
4647
"autoload": {
4748
"psr-4": {
@@ -59,4 +60,4 @@
5960
"bin": [
6061
"bin-stub/phparkitect"
6162
]
62-
}
63+
}

tests/Unit/Analyzer/FileParserTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@
1111
use PhpParser\NodeTraverser;
1212
use PHPUnit\Framework\TestCase;
1313
use Prophecy\Argument;
14+
use Prophecy\PhpUnit\ProphecyTrait;
1415

1516
class FileParserTest extends TestCase
1617
{
18+
use ProphecyTrait;
19+
1720
public function test_parse_file(): void
1821
{
1922
$traverser = $this->prophesize(NodeTraverser::class);

tests/Unit/CLI/Progress/DebugProgressTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@
77
use Arkitect\ClassSet;
88
use Arkitect\CLI\Progress\DebugProgress;
99
use PHPUnit\Framework\TestCase;
10+
use Prophecy\PhpUnit\ProphecyTrait;
1011
use Symfony\Component\Console\Output\OutputInterface;
1112

1213
class DebugProgressTest extends TestCase
1314
{
15+
use ProphecyTrait;
16+
1417
public function test_it_should_generate_text_on_start_parsing_file(): void
1518
{
1619
$output = $this->prophesize(OutputInterface::class);

0 commit comments

Comments
 (0)