Completed
Branch trunk (78000f)
by SuperNova.WS
25:55 queued 09:00
created

ValidatorsTest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 25
rs 10
c 0
b 0
f 0
wmc 3
lcom 0
cbo 2
1
<?php
2
3
/**
4
 * Class ValidatorsTest
5
 *
6
 * @coversDefaultClass Validators
7
 */
8
class ValidatorsTest extends PHPUnit_Framework_TestCase {
9
10
  public function setUp() {
11
    parent::setUp();
12
  }
13
14
  public function tearDown() {
15
    parent::tearDown();
16
  }
17
18
  /**
19
   * @covers ::isNotEmpty
20
   * @covers ::isNotEmptyByRef
21
   */
22
  public function testIsNotEmpty() {
23
    $tested = new Validators();
24
25
    // Not empty
26
    $this->assertTrue(invokeMethod($tested, 'isNotEmpty', array('1')));
27
28
    // Empty
29
    $this->assertFalse(invokeMethod($tested, 'isNotEmpty', array('0')));
30
  }
31
32
}
33