/** * @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()); }
public function testShouldGetName() { $this->assertSame('Ubuntu torrent', $this->torrent->getName()); }