Clinner\ValueHolder::isEmpty PHP Method

isEmpty() public method

Answer whether this ValueHolder is empty.
public isEmpty ( ) : boolean
return boolean
    public function isEmpty()
    {
        return $this->count() === 0;
    }

Usage Example

Example #1
0
 /**
  * @dataProvider getInitialValues
  */
 public function testIsEmpty($initialValues)
 {
     $valueHolder = new ValueHolder($initialValues);
     $this->assertEquals(empty($initialValues), $valueHolder->isEmpty());
 }