public function test_file() { $this->torrent = Torrent::fromFile(__DIR__ . '/ubuntu-13.10-desktop-amd64.iso.torrent'); $this->assertEquals('ubuntu-13.10-desktop-amd64.iso', $this->torrent->getFiles()[0]->getPath()); $this->assertEquals(925892608, $this->torrent->getFiles()[0]->getSize()); $this->assertEquals(null, $this->torrent->getFiles()[0]->getMd5Sum()); }
public function test_file() { $this->assertEquals('2010-08-10 - Krass 360° in Frankfurt (MULTICAM BD).mkv', $this->torrent->getFiles()[0]->getPath()); $this->assertEquals(12262451114, $this->torrent->getFiles()[0]->getSize()); $this->assertEquals(null, $this->torrent->getFiles()[0]->getMd5Sum()); $this->assertEquals('info.txt', $this->torrent->getFiles()[1]->getPath()); $this->assertEquals(1660, $this->torrent->getFiles()[1]->getSize()); $this->assertEquals(null, $this->torrent->getFiles()[1]->getMd5Sum()); }