public function testWillThrowAnExceptionWhenRequestBodyIsEmpty() { $this->request->expects($this->once())->method('getContent')->will($this->returnValue(null)); $this->getNewResource()->createShortUrl($this->event); }