Completed
Push — master ( dbb439...8abb49 )
by Jakub
01:34
created

TestJobs::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 2
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
declare(strict_types=1);
3
4
namespace MyTester;
5
6
/**
7
 * Tests for class Job
8
 *
9
 * @author Jakub Konečný
10
 */
11
final class TestJobs {
12
  private JobTest $testCase;
13
14
  public function __construct(JobTest $testCase) {
15
    $this->testCase = $testCase;
16
  }
17
18
  public function test(): void {
19
    $this->testCase->assertSame(1, 1);
20
  }
21
22
  /**
23
   * Test params for job
24
   */
25
  public function testParams(array $params, string $text): void {
26
    $this->testCase->assertSame("abc", $params[0]);
27
    $this->testCase->assertSame("def", $text);
28
  }
29
}
30
?>