/**
  * Upload the template to S3 (squashing any sub-stack templates) and return
  * the URL.
  *
  * @param Template $template Template to squash and upload.
  * @return string URL of uploaded template.
  */
 public function getSquashedTemplateURL(Template $template)
 {
     $body = clone $template->getBody();
     $this->squashTemplate($body);
     return $this->uploadTemplate($body);
 }
 public function testGetBodyWrongType()
 {
     $this->setExpectedException('RuntimeException');
     $template = new Template('foo', '');
     $template->getBody();
 }