/** * Tests Frame->__toString(). */ public function test__toString() { $this->assertEquals('Frame perdue (sans site ni news)', $this->frame->__toString()); $news = new News(); $news->setTitle('bar'); $this->frame->setNews($news); $this->assertEquals('Frame de la news bar', $this->frame->__toString()); $site = new Site(); $site->setName('foo'); $this->frame->setSite($site); $this->assertEquals('Frame du site foo', $this->frame->__toString()); }
/** * Tests News->__toString(). */ public function testToString() { $this->news->setTitle('foo'); $this->assertEquals('News foo', $this->news->__toString()); }