public function testRecordTranscription() { $say = new Say("Please say your account number"); $choices = new Choices("[5 DIGITS]", NULL, "#"); $transcription = new Transcription('http://example.com/', 'bling', 'encoded'); $tropo = new Tropo(); $tropo->Record(NULL, NULL, true, $choices, NULL, 5, "POST", NULL, NULL, $say, NULL, NULL, $transcription); $this->assertEquals('{"tropo":[{"record":{"beep":true,"choices":{"value":"[5 DIGITS]","termChar":"#"},"maxSilence":5,"method":"POST","say":{"value":"Please say your account number"},"transcription":{"id":"bling","url":"http://example.com/","emailFormat":"encoded"}}}]}', sprintf($tropo)); }