public function testExtractInvalidJson() { $this->setExpectedException('Exception'); $this->OEmbed->extract('invalid'); }