Completed
Push — 1.x ( fbb429 )
by Jakub
06:33
created

TestJobs   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 22
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A test() 0 3 1
A testParams() 0 4 1
1
<?php
0 ignored issues
show
introduced by
Missing required strict_types declaration
Loading history...
2
namespace MyTester;
3
4
/**
5
 * Tests for class Job
6
 *
7
 * @author Jakub Konečný
8
 */
9
class TestJobs {
10
  /**
11
   * Test for Environment::testResult()
12
   *
13
   * @return void
14
   */
15
  public function test() {
16
    Environment::testResult("Test");
17
  }
18
  
19
  /**
20
   * Test params for job
21
   *
22
   * @param array $params
23
   * @param string $text
24
   * @return void
25
   */
26
  public function testParams(array $params, $text) {
27
    Assert::same("abc", $params[0]);
28
    Assert::same("def", $text);
29
  }
30
}
31
?>