aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/LinkDBTest.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/LinkDBTest.php b/tests/LinkDBTest.php
index 0d343359..a54fc501 100644
--- a/tests/LinkDBTest.php
+++ b/tests/LinkDBTest.php
@@ -15,7 +15,7 @@ class LinkDBTest extends PHPUnit_Framework_TestCase
15{ 15{
16 // datastore to test write operations 16 // datastore to test write operations
17 protected static $testDatastore = 'tests/datastore.php'; 17 protected static $testDatastore = 'tests/datastore.php';
18 protected static $dummyDatastoreSHA1 = 'e3edea8ea7bb50be4bcb404df53fbb4546a7156e'; 18 protected static $dummyDatastoreFilesize = 759;
19 protected static $refDB = null; 19 protected static $refDB = null;
20 protected static $publicLinkDB = null; 20 protected static $publicLinkDB = null;
21 protected static $privateLinkDB = null; 21 protected static $privateLinkDB = null;
@@ -110,8 +110,8 @@ class LinkDBTest extends PHPUnit_Framework_TestCase
110 110
111 // ensure the correct data has been written 111 // ensure the correct data has been written
112 $this->assertEquals( 112 $this->assertEquals(
113 self::$dummyDatastoreSHA1, 113 self::$dummyDatastoreFilesize,
114 sha1_file(self::$testDatastore) 114 filesize(self::$testDatastore)
115 ); 115 );
116 } 116 }
117 117
@@ -122,8 +122,8 @@ class LinkDBTest extends PHPUnit_Framework_TestCase
122 { 122 {
123 $linkDB = new LinkDB(self::$testDatastore, false, false); 123 $linkDB = new LinkDB(self::$testDatastore, false, false);
124 $this->assertEquals( 124 $this->assertEquals(
125 self::$dummyDatastoreSHA1, 125 self::$dummyDatastoreFilesize,
126 sha1_file(self::$testDatastore) 126 filesize(self::$testDatastore)
127 ); 127 );
128 128
129 $checkDB = self::getMethod('checkDB'); 129 $checkDB = self::getMethod('checkDB');
@@ -131,8 +131,8 @@ class LinkDBTest extends PHPUnit_Framework_TestCase
131 131
132 // ensure the datastore is left unmodified 132 // ensure the datastore is left unmodified
133 $this->assertEquals( 133 $this->assertEquals(
134 self::$dummyDatastoreSHA1, 134 self::$dummyDatastoreFilesize,
135 sha1_file(self::$testDatastore) 135 filesize(self::$testDatastore)
136 ); 136 );
137 } 137 }
138 138