Beispiel #1
0
 /**
  * @covers PHP\BitTorrent\Torrent::setInfo
  * @covers PHP\BitTorrent\Torrent::getName
  */
 public function testGetName()
 {
     $name = 'Some name';
     $info = array('name' => $name);
     $this->torrent->setInfo($info);
     $this->assertSame($name, $this->torrent->getName());
 }
Beispiel #2
0
 public function testShouldGetName()
 {
     $this->assertSame('Ubuntu torrent', $this->torrent->getName());
 }