ArrayHelperTest::testIsAssociative()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 8
rs 9.4285
cc 1
eloc 5
nc 1
nop 0
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