Skip to content

Commit

Permalink
Use assertEquals since 32-bit platforms running the tests will use st…
Browse files Browse the repository at this point in the history
…rings instead of integers
  • Loading branch information
christeredvartsen committed Dec 9, 2012
1 parent cf35633 commit 4f6df50
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/PHP/BitTorrent/TorrentTest.php
Expand Up @@ -220,7 +220,7 @@ public function testGetSizeWhenInfoBlockHasSeveralFiles() {
);
$info = array('files' => $files);
$this->torrent->setInfo($info);
$this->assertSame(167, $this->torrent->getSize());
$this->assertEquals(167, $this->torrent->getSize());
}

/**
Expand All @@ -240,7 +240,7 @@ public function testCreateFromTorrentFile() {
$this->assertSame('This is a comment', $torrent->getComment());
$this->assertSame('PHP BitTorrent', $torrent->getCreatedBy());
$this->assertSame(1323713688, $torrent->getCreatedAt());
$this->assertSame(30243, $torrent->getSize());
$this->assertEquals(30243, $torrent->getSize());
$this->assertSame(5, count($torrent->getFileList()));
}

Expand Down Expand Up @@ -300,7 +300,7 @@ public function testCreateFromPathWhenUsingADirectoryAsArgument() {

$this->assertSame($trackerUrl, $torrent->getAnnounce());
$this->assertSame('_files', $torrent->getName());
$this->assertSame(902004, $torrent->getSize());
$this->assertEquals(902004, $torrent->getSize());
$this->assertSame(5, count($torrent->getFileList()));
}

Expand Down Expand Up @@ -364,7 +364,7 @@ public function testSaveTorrent() {
$this->assertSame($comment, $torrent->getComment());
$this->assertSame($createdBy, $torrent->getCreatedBy());
$this->assertSame('_files', $torrent->getName());
$this->assertSame(902004, $torrent->getSize());
$this->assertEquals(902004, $torrent->getSize());
$this->assertSame(5, count($torrent->getFileList()));
$this->assertSame($announceList, $torrent->getAnnounceList());

Expand Down

0 comments on commit 4f6df50

Please sign in to comment.