Skip to content

Commit 51e2454

Browse files
committed
bump coverage
1 parent 0966476 commit 51e2454

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
![Chevere](chevere.svg)
44

5-
[![Build](https://img.shields.io/github/actions/workflow/status/chevere/workflow/test.yml?branch=2.0&style=flat-square)](https://github.com/chevere/workflow/actions)
5+
[![Build](https://img.shields.io/github/actions/workflow/status/chevere/workflow/test.yml?branch=2.1&style=flat-square)](https://github.com/chevere/workflow/actions)
66
![Code size](https://img.shields.io/github/languages/code-size/chevere/workflow?style=flat-square)
77
[![Apache-2.0](https://img.shields.io/github/license/chevere/workflow?style=flat-square)](LICENSE)
88
[![PHPStan](https://img.shields.io/badge/PHPStan-level%209-blueviolet?style=flat-square)](https://phpstan.org/)
9-
[![Mutation testing badge](https://img.shields.io/endpoint?style=flat-square&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fchevere%2Fworkflow%2F2.0)](https://dashboard.stryker-mutator.io/reports/github.com/chevere/workflow/2.0)
9+
[![Mutation testing badge](https://img.shields.io/endpoint?style=flat-square&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fchevere%2Fworkflow%2F2.1)](https://dashboard.stryker-mutator.io/reports/github.com/chevere/workflow/2.1)
1010

1111
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=chevere_workflow&metric=alert_status)](https://sonarcloud.io/dashboard?id=chevere_workflow)
1212
[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=chevere_workflow&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=chevere_workflow)

src/Traits/ExpectWorkflowExceptionTrait.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ abstract public static function assertSame(mixed $expected, mixed $actual, strin
3232
* @param string $job The expected job that will throw exception.
3333
* @param string $instance The expected job exception instance.
3434
* @param int $code The expected job exception code.
35+
*
36+
* @infection-ignore-all
3537
*/
3638
private function expectWorkflowException(
3739
Closure $closure,

tests/RunnerTest.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,26 @@ final class RunnerTest extends TestCase
4444
{
4545
use ExpectWorkflowExceptionTrait;
4646

47+
public function testWithRun(): void
48+
{
49+
$workflow = workflow();
50+
$run = new Run($workflow);
51+
$runner = new Runner($run);
52+
$with = $runner->withRun();
53+
$this->assertEquals($runner, $with);
54+
$this->assertNotSame($runner, $with);
55+
}
56+
57+
public function testWithRunJob(): void
58+
{
59+
$action = new TestActionNoParams();
60+
$workflow = workflow(job1: async($action));
61+
$run = new Run($workflow);
62+
$runner = new Runner($run);
63+
$runnerWith = $runner->withRunJob('job1');
64+
$this->assertNotSame($runner, $runnerWith);
65+
}
66+
4767
public function testRunnerForArguments(): void
4868
{
4969
$jobsRunArguments = [

0 commit comments

Comments
 (0)