public function testHangup() { $tropo = new Tropo(); $tropo->Hangup(); $this->assertEquals('{"tropo":[{"hangup":"null"}]}', sprintf($tropo)); }