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

TestJobs   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 6
dl 0
loc 17
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A testParams() 0 3 1
A __construct() 0 2 1
A test() 0 2 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
?>