/** * @expectedException InvalidArgumentException * @return null */ public function testSetStatusCodeNotScalarObj_Failure() { $this->template->setStatusCode(new StdClass()); }