From 141a86c503af8e314381b3ee39ba4287fdfac63e Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Wed, 11 May 2016 00:05:22 +0200 Subject: Add private link counter --- tests/LinkUtilsTest.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests') diff --git a/tests/LinkUtilsTest.php b/tests/LinkUtilsTest.php index 609a80cb..d1b022fd 100644 --- a/tests/LinkUtilsTest.php +++ b/tests/LinkUtilsTest.php @@ -84,4 +84,13 @@ class LinkUtilsTest extends PHPUnit_Framework_TestCase $html = 'stuff'; $this->assertFalse(html_extract_charset($html)); } + + /** + * Test count_private. + */ + public function testCountPrivateLinks() + { + $refDB = new ReferenceLinkDB(); + $this->assertEquals($refDB->countPrivateLinks(), count_private($refDB->getLinks())); + } } -- cgit v1.2.3