ArrayHelperTest   A
last analyzed

Complexity

Total Complexity 10

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Importance

Changes 2
Bugs 1 Features 1
Metric Value
wmc 10
c 2
b 1
f 1
dl 0
loc 48
rs 10

10 Methods

Rating   Name   Duplication   Size   Complexity  
A testMultidimensionalUnique() 0 1 1
A testSlice() 0 1 1
A testValue() 0 1 1
A testUnversion() 0 1 1
A testFromJson() 0 1 1
A testToObject() 0 1 1
A testKey() 0 1 1
A testIsAssociative() 0 8 1
A testMerge() 0 1 1
A testIsNotAssociative() 0 2 1
1
<?php
2
3
/**
4
 * @file ArrayHelperTest.php
5
 * @brief This file contains the ${CLASS_NAME} class.
6
 * @details
7
 * @author Filippo F. Fadda
8
 */
9
10
11
use ToolBag\Helper\ArrayHelper;
12
13
class ArrayHelperTest extends PHPUnit_Framework_TestCase {
14
15
  public function testUnversion() {
16
17
  }
18
19
  public function testToObject() {
20
21
  }
22
23
  public function testKey() {
24
25
  }
26
27
  public function testFromJson() {
28
29
  }
30
31
  public function testMerge() {
32
33
  }
34
35
  public function testValue() {
36
37
  }
38
39
  public function testMultidimensionalUnique() {
40
41
  }
42
43
  public function testSlice() {
44
45
  }
46
47
48
  public function testIsAssociative() {
49
    $assocArray = [
50
      'one' => 1,
51
      'two' => 2,
52
      'three' => 3,
53
    ];
54
55
    $this->assertTrue(ArrayHelper::isAssociative($assocArray));
56
  }
57
58
59
  public function testIsNotAssociative() {
60
    $this->assertFalse(ArrayHelper::isAssociative([1, 2, 3]));
61
  }
62
63
}
64