File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 18
18
use function in_array ;
19
19
use function sprintf ;
20
20
21
- final class DependencyRewriterV1 extends AbstractDependencyRewriter
21
+ final class DependencyRewriterV1 extends AbstractDependencyRewriter implements DependencySolvingCapableInterface
22
22
{
23
23
/**
24
24
* Replace ZF packages present in the composer.json during install or
Original file line number Diff line number Diff line change 21
21
use Composer \Plugin \PreCommandRunEvent ;
22
22
use Composer \Repository \RepositoryManager ;
23
23
use Laminas \DependencyPlugin \DependencyRewriterV1 ;
24
+ use Laminas \DependencyPlugin \DependencySolvingCapableInterface ;
24
25
use PHPUnit \Framework \TestCase ;
25
26
use Prophecy \Argument ;
26
27
use Prophecy \PhpUnit \ProphecyTrait ;
@@ -740,4 +741,9 @@ public function testPrePackageUpdatesPackageNameWhenReplacementExists() : void
740
741
$ this ->assertNull ($ this ->plugin ->onPrePackageInstallOrUpdate ($ event ->reveal ()));
741
742
$ this ->assertSame ($ replacementPackage , $ operation ->getTargetPackage ());
742
743
}
744
+
745
+ public function testRewriterImplementsDependencySolvingCapableInterface () : void
746
+ {
747
+ self ::assertInstanceOf (DependencySolvingCapableInterface::class, $ this ->plugin );
748
+ }
743
749
}
You can’t perform that action at this time.
0 commit comments