| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | public function testRun(string $name): void |
||
| 13 | { |
||
| 14 | $job = new HelloJob([ |
||
| 15 | 'name' => $name, |
||
| 16 | ]); |
||
| 17 | |||
| 18 | $method = new \ReflectionMethod(HelloJob::class, 'run'); |
||
| 19 | $method->setAccessible(true); |
||
| 20 | ob_start(); |
||
| 21 | $method->invoke($job); |
||
| 22 | $output = ob_get_contents(); |
||
| 23 | ob_end_flush(); |
||
| 24 | $this->assertContains($name, $output); |
||
| 25 | } |
||
| 35 |