Url = new Url('A', 'T', 'L'); } /** * Cleans up the environment after running a test. */ protected function tearDown() { $this->Url = null; parent::tearDown(); } /** * Tests Url->getAddress() */ public function testGetAddress() { $this->assertEquals('A', $this->Url->getValue()); } /** * Tests Url->getLinkText() */ public function testGetLinkText() { $this->assertEquals('L', $this->Url->getLinkText()); } /** * Tests Url->getType() */ public function testGetType() { $this->assertEquals('T', $this->Url->getType()); } /** * Tests Url->setAddress() */ public function testSetAddress() { $this->Url->setValue('a'); $this->assertEquals('a', $this->Url->getValue()); } /** * Tests Url->setLinkText() */ public function testSetLinkText() { $this->Url->setLinkText('l'); $this->assertEquals('l', $this->Url->getLinkText()); } /** * Tests Url->setType() */ public function testSetType() { $this->Url->setType('t'); $this->assertEquals('t', $this->Url->type); } }