/** * @expectedException \LogicException * @expectedExceptionMessage The requested asset type was 'assetType', but ended up with 'type' */ public function testAssertValid() { $this->object->setContentType('type'); $this->object->assertValid(); }