public function testGivenUnsupportedType_ParameterKeyTypeFails() { $this->setExpectedException('Wikimedia\\Assert\\ParameterAssertionException', 'Bad value for parameter type: must be "integer" or "string"'); Assert::parameterKeyType('integer|string', array(), 'test'); }