Skip to content
This repository was archived by the owner on Oct 5, 2022. It is now read-only.

Commit 2ca9324

Browse files
committed
Rewrites test for Common/Exec.
1 parent de6b1c6 commit 2ca9324

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/phpSec/Common/ExecTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ public function testExec() {
66
$psl = new \phpSec\Core();
77
$exec = $psl['common/exec'];
88

9-
$return = $exec->run('php', array(), '<?php echo "Hello World";');
9+
$return = $exec->run('echo %s', array('%s' => 'Hello World'));
1010

11-
$this->assertEquals($return['STDOUT'], 'Hello World');
11+
$this->assertEquals(trim($return['STDOUT']), 'Hello World');
1212
$this->assertEquals($return['STDERR'], '');
1313
$this->assertEquals($return['return'], 0);
1414

0 commit comments

Comments
 (0)