public function testHyperlink()
{
$object = new TextElement();
$this->assertFalse($object->hasHyperlink());
$this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText\\TextElement', $object->setHyperlink());
$this->assertFalse($object->hasHyperlink());
$this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Hyperlink', $object->getHyperlink());
$this->assertTrue($object->hasHyperlink());
$this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText\\TextElement', $object->setHyperlink(new Hyperlink('http://www.google.fr')));
$this->assertTrue($object->hasHyperlink());
$this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Hyperlink', $object->getHyperlink());
}