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
 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;
 }
Example #2
0
 /**
  * @dataProvider dataInvalidEmpty
  */
 public function testInvalidEmpty($value)
 {
     $this->setExpectedException('Assert\\AssertionFailedException', null, Assertion::VALUE_NOT_EMPTY);
     Assertion::noContent($value);
 }