aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/LinkDBTest.php
diff options
context:
space:
mode:
authorVirtualTam <virtualtam@flibidi.net>2015-07-11 01:29:12 +0200
committerVirtualTam <virtualtam@flibidi.net>2015-07-13 13:06:06 +0200
commitd1e2f8e52c931f84c11d4f54f32959710d528182 (patch)
treebe5ad2fcfeb31136e7afca0603a3cd3da3d76b57 /tests/LinkDBTest.php
parent5b0ebbc5de06b8a0e9679b78b45d0dc755db7986 (diff)
downloadShaarli-d1e2f8e52c931f84c11d4f54f32959710d528182.tar.gz
Shaarli-d1e2f8e52c931f84c11d4f54f32959710d528182.tar.zst
Shaarli-d1e2f8e52c931f84c11d4f54f32959710d528182.zip
PHP: ensure 5.3 compatibility, refactor timezone utilities
Relates to #250 Modifications - supported version - bump required version from 5.1.0 to 5.3.x - update README - add PHP 5.3 to Travis environments - rewrite array declarations: explicitely use array() instead of [] - move checkPHPVersion to application/Utils.php - move timezone functions to application/TimeZone.php - cleanup code - improve test coverage Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Diffstat (limited to 'tests/LinkDBTest.php')
-rw-r--r--tests/LinkDBTest.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/LinkDBTest.php b/tests/LinkDBTest.php
index d34ea4f5..504c8190 100644
--- a/tests/LinkDBTest.php
+++ b/tests/LinkDBTest.php
@@ -228,12 +228,12 @@ class LinkDBTest extends PHPUnit_Framework_TestCase
228 public function testDays() 228 public function testDays()
229 { 229 {
230 $this->assertEquals( 230 $this->assertEquals(
231 ['20121206', '20130614', '20150310'], 231 array('20121206', '20130614', '20150310'),
232 self::$publicLinkDB->days() 232 self::$publicLinkDB->days()
233 ); 233 );
234 234
235 $this->assertEquals( 235 $this->assertEquals(
236 ['20121206', '20130614', '20141125', '20150310'], 236 array('20121206', '20130614', '20141125', '20150310'),
237 self::$privateLinkDB->days() 237 self::$privateLinkDB->days()
238 ); 238 );
239 } 239 }
@@ -269,7 +269,7 @@ class LinkDBTest extends PHPUnit_Framework_TestCase
269 public function testAllTags() 269 public function testAllTags()
270 { 270 {
271 $this->assertEquals( 271 $this->assertEquals(
272 [ 272 array(
273 'web' => 3, 273 'web' => 3,
274 'cartoon' => 2, 274 'cartoon' => 2,
275 'gnu' => 2, 275 'gnu' => 2,
@@ -279,12 +279,12 @@ class LinkDBTest extends PHPUnit_Framework_TestCase
279 'software' => 1, 279 'software' => 1,
280 'stallman' => 1, 280 'stallman' => 1,
281 'free' => 1 281 'free' => 1
282 ], 282 ),
283 self::$publicLinkDB->allTags() 283 self::$publicLinkDB->allTags()
284 ); 284 );
285 285
286 $this->assertEquals( 286 $this->assertEquals(
287 [ 287 array(
288 'web' => 4, 288 'web' => 4,
289 'cartoon' => 3, 289 'cartoon' => 3,
290 'gnu' => 2, 290 'gnu' => 2,
@@ -298,7 +298,7 @@ class LinkDBTest extends PHPUnit_Framework_TestCase
298 'w3c' => 1, 298 'w3c' => 1,
299 'css' => 1, 299 'css' => 1,
300 'Mercurial' => 1 300 'Mercurial' => 1
301 ], 301 ),
302 self::$privateLinkDB->allTags() 302 self::$privateLinkDB->allTags()
303 ); 303 );
304 } 304 }