We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37be1a9 commit d8fc37cCopy full SHA for d8fc37c
1 file changed
tests/JSignPDFTest.php
@@ -84,6 +84,11 @@ public function testSignWhenPasswordIsInvalid()
84
85
public function testSignWhenJavaNotFound()
86
{
87
+ $javaVersion = exec("java -version 2>&1");
88
+ $hasJavaVersion = strpos($javaVersion, 'not found') === false;
89
+ if ($hasJavaVersion) {
90
+ $this->markTestSkipped('Java is already installed, impossible to test if it is not installed');
91
+ }
92
$this->expectExceptionMessage('Java not installed, set the flag "isUseJavaInstalled" as false or install java.');
93
$params = JSignParamBuilder::instance()->withDefault()->setIsUseJavaInstalled(true);
94
$this->service->sign($params);
0 commit comments