noContent() public static method

Assert that value is empty
public static noContent ( mixed $value, string | null $message = null, string | null $propertyPath = null ) : boolean
$value mixed
$message string | null
$propertyPath string | null
return boolean
Ejemplo n.º 1
0
 protected function marshallParts(InputInterface $input) : array
 {
     $parts = $input->getOption('part');
     $invalidParts = array_diff($parts, $this->validParts);
     Assertion::noContent($invalidParts, sprintf('Invalid parts specified: %s', implode(', ', $invalidParts)));
     if (in_array(static::PART_ALL, $parts)) {
         $parts = $this->puzzle->getPartMethods();
     }
     return $parts;
 }
Ejemplo n.º 2
0
 /**
  * @dataProvider dataInvalidEmpty
  */
 public function testInvalidEmpty($value)
 {
     $this->setExpectedException('Assert\\AssertionFailedException', null, Assertion::VALUE_NOT_EMPTY);
     Assertion::noContent($value);
 }