• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

orchestral / testbench-core / 13805264806

12 Mar 2025 06:39AM UTC coverage: 93.023%. Remained the same
13805264806

push

github

crynobone
Merge branch '7.x' into 8.x

Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>

0 of 1 new or added line in 1 file covered. (0.0%)

1440 of 1548 relevant lines covered (93.02%)

67.72 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

75.0
/src/Foundation/Process/ProcessResult.php
1
<?php
2

3
namespace Orchestra\Testbench\Foundation\Process;
4

5
use Illuminate\Support\Traits\ForwardsCalls;
6
use Symfony\Component\Process\Process;
7

8
/**
9
 * @internal
10
 */
11
final class ProcessResult extends \Illuminate\Process\ProcessResult
12
{
13
    use ForwardsCalls;
14

15
    /**
16
     * The methods that should be returned from process instance.
17
     *
18
     * @var array<int, string>
19
     */
20
    protected array $passthru = [
21
        'getCommandLine',
22
        'getErrorOutput',
23
        'getExitCode',
24
        'getOutput',
25
        'isSuccessful',
26
    ];
27

28
    /**
29
     * Create a new process result instance.
30
     *
31
     * @param  \Symfony\Component\Process\Process  $process
32
     * @param  array<int, string>|string  $command
33
     */
34
    public function __construct(
35
        Process $process,
36
        protected array|string $command,
37
    ) {
38
        parent::__construct($process);
12✔
39
    }
40

41
    /**
42
     * Handle dynamic calls to the process instance.
43
     *
44
     * @param  string  $method
45
     * @param  array<int, mixed>  $parameters
46
     * @return mixed
47
     *
48
     * @throws \BadMethodCallException
49
     */
50
    public function __call($method, $parameters)
51
    {
52
        if (! \in_array($method, $this->passthru)) {
1✔
NEW
53
            self::throwBadMethodCallException($method);
×
54
        }
55

56
        return $this->forwardDecoratedCallTo($this->process, $method, $parameters);
1✔
57
    }
58
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc