Skip to content

Commit

Permalink
Fixed code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
kleiram committed Apr 12, 2013
1 parent db4a241 commit 0c60ccb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Transmission/Tests/TorrentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public function shouldGetAllTorrents()
(object) array(
'id' => 1,
'name' => 'Example 1',
'sizeWhenDone' => 200,
'trackers' => array(
(object) array(
'id' => 1,
Expand Down Expand Up @@ -59,6 +60,7 @@ public function shouldGetAllTorrents()
$this->assertCount(2, $torrents);
$this->assertEquals(1, $torrents[0]->getId());
$this->assertEquals('Example 1', $torrents[0]->getName());
$this->assertEquals(200, $torrents[0]->getSize());
$this->assertInternalType('array', $torrents[0]->getTrackers());
$this->assertCount(1, ($trackers = $torrents[0]->getTrackers()));
$this->assertCount(2, ($files = $torrents[0]->getFiles()));
Expand Down

0 comments on commit 0c60ccb

Please sign in to comment.