예제 #1
0
 /**
  * Test for isNotEmpty()
  *
  * @param string $value
  * @param array $expectedResult
  * @return void
  * @dataProvider isNotEmptyReturnsBoolDataProvider
  * @test
  */
 public function isNotEmptyReturnsBool($value, $expectedResult)
 {
     $this->assertSame($expectedResult, StringUtility::isNotEmpty($value));
 }
 /**
  * Mandatory Check
  *
  * @param mixed $value
  * @return bool
  */
 protected function validateMandatory($value)
 {
     return StringUtility::isNotEmpty($value);
 }
 /**
  * View helper check if given value is empty
  *
  * @param mixed $val String or Number
  * @return boolean
  */
 public function render($val)
 {
     return StringUtility::isNotEmpty($val);
 }