| 1 | <?php |
||
| 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 |