public function testSetAlternateWithExtras() { $this->helper->setAlternate('/mydocument.pdf', 'application/pdf', 'foo', array('media' => array('print', 'screen'))); $test = $this->helper->toString(); $this->assertContains('media="print,screen"', $test); }