Skip to content

Commit 7ca8560

Browse files
committed
Fix quotes in exception messages
1 parent 3641a93 commit 7ca8560

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Process.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1681,7 +1681,7 @@ function ($m) use (&$env, &$varCache, &$varCount, $uid) {
16811681
private function requireProcessIsStarted($functionName)
16821682
{
16831683
if (!$this->isStarted()) {
1684-
throw new LogicException(sprintf('Process must be started before calling %s.', $functionName));
1684+
throw new LogicException(sprintf('Process must be started before calling "%s()".', $functionName));
16851685
}
16861686
}
16871687

@@ -1695,7 +1695,7 @@ private function requireProcessIsStarted($functionName)
16951695
private function requireProcessIsTerminated($functionName)
16961696
{
16971697
if (!$this->isTerminated()) {
1698-
throw new LogicException(sprintf('Process must be terminated before calling %s.', $functionName));
1698+
throw new LogicException(sprintf('Process must be terminated before calling "%s()".', $functionName));
16991699
}
17001700
}
17011701

Tests/ProcessTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ public function testMethodsThatNeedARunningProcess($method)
936936
$process = $this->getProcess('foo');
937937

938938
$this->expectException('Symfony\Component\Process\Exception\LogicException');
939-
$this->expectExceptionMessage(sprintf('Process must be started before calling %s.', $method));
939+
$this->expectExceptionMessage(sprintf('Process must be started before calling "%s()".', $method));
940940

941941
$process->{$method}();
942942
}

0 commit comments

Comments
 (0)