/**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  *
  * @return void
  */
 protected function setUp()
 {
     // File name must be fix for info hashing.
     $this->file_path = sys_get_temp_dir() . '/test_torrent';
     file_put_contents($this->file_path, self::TEST_DATA);
     $file = new File\File($this->file_path);
     $this->object = new Torrent($file, 2);
     $this->object->setPrivate(false)->setAnnounceList(array('http://announce'))->setUrlList(array('http://example.com/test.ext'));
 }