mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-11 12:03:14 +00:00
41 lines
826 B
PHP
41 lines
826 B
PHP
<?php
|
|
|
|
require_once __DIR__ . '/../PhraseanetPHPUnitAbstract.class.inc';
|
|
|
|
/**
|
|
* Test class for Feed_Link.
|
|
* Generated by PHPUnit on 2011-07-01 at 15:25:59.
|
|
*/
|
|
class Feed_LinkTest extends PhraseanetPHPUnitAbstract
|
|
{
|
|
|
|
/**
|
|
* @var Feed_Link
|
|
*/
|
|
protected $object;
|
|
protected $href = "http://www.google.fr/";
|
|
protected $title = "google";
|
|
protected $mime = "html/text";
|
|
|
|
public function setUp()
|
|
{
|
|
$this->object = new Feed_Link($this->href, $this->title, $this->mime);
|
|
}
|
|
|
|
public function testGet_mimetype()
|
|
{
|
|
$this->assertEquals($this->mime, $this->object->get_mimetype());
|
|
}
|
|
|
|
public function testGet_title()
|
|
{
|
|
$this->assertEquals($this->title, $this->object->get_title());
|
|
}
|
|
|
|
public function testGet_href()
|
|
{
|
|
$this->assertEquals($this->href, $this->object->get_href());
|
|
}
|
|
|
|
}
|