/** * @expectedException \DrestCommon\Representation\RepresentationException */ public function testMetadataRepresentationCanNotBeAnInteger() { $className = 'DrestTests\\Entities\\Typical\\User'; $cmd = new ClassMetaData(new \ReflectionClass($className)); $rep = 1; $cmd->addRepresentation($rep); }