@@ 594-606 (lines=13) @@ | ||
591 | ->willReturn('source'); |
|
592 | } |
|
593 | ||
594 | private function assertWillSucceedPackageVerification() : void |
|
595 | { |
|
596 | $this |
|
597 | ->io |
|
598 | ->expects(self::exactly(2)) |
|
599 | ->method('write') |
|
600 | ->with(self::logicalOr( |
|
601 | '<info>roave/composer-gpg-verify:</info> Analysing downloaded packages...', |
|
602 | '<info>roave/composer-gpg-verify:</info> All installed packages passed GPG validation!' |
|
603 | )); |
|
604 | ||
605 | Verify::verify($this->event); |
|
606 | } |
|
607 | ||
608 | private function assertWillFailPackageVerification() : void |
|
609 | { |
|
@@ 608-619 (lines=12) @@ | ||
605 | Verify::verify($this->event); |
|
606 | } |
|
607 | ||
608 | private function assertWillFailPackageVerification() : void |
|
609 | { |
|
610 | $this |
|
611 | ->io |
|
612 | ->expects(self::once()) |
|
613 | ->method('write') |
|
614 | ->with(self::logicalOr('<info>roave/composer-gpg-verify:</info> Analysing downloaded packages...')); |
|
615 | ||
616 | $this->expectException(PackagesTrustCheckFailed::class); |
|
617 | ||
618 | Verify::verify($this->event); |
|
619 | } |
|
620 | ||
621 | private function importForeignKeys( |
|
622 | string $localGpgHome, |