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

orchestral / testbench-core / 13800970739

12 Mar 2025 12:30AM UTC coverage: 93.023% (+0.004%) from 93.019%
13800970739

push

github

crynobone
wip

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

5 of 6 new or added lines in 2 files covered. (83.33%)

1440 of 1548 relevant lines covered (93.02%)

67.73 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
class ProcessResult extends \Illuminate\Process\ProcessResult
9
{
10
    use ForwardsCalls;
11

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

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

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

53
        return $this->forwardDecoratedCallTo($this->process, $method, $parameters);
1✔
54
    }
55
}
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