/**
  * 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());
 }
Exemple #2
0
 /**
  * Tests Site->__toString().
  */
 public function testToString()
 {
     $this->site->setName('barr');
     $this->assertEquals('barr', $this->site->__toString());
 }