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