Add private link counter

This commit is contained in:
ArthurHoaro 2016-05-11 00:05:22 +02:00
parent 03eb19ac60
commit 141a86c503
4 changed files with 30 additions and 15 deletions

View file

@ -84,4 +84,13 @@ class LinkUtilsTest extends PHPUnit_Framework_TestCase
$html = '<html><meta>stuff</meta><meta charset=""/></html>';
$this->assertFalse(html_extract_charset($html));
}
/**
* Test count_private.
*/
public function testCountPrivateLinks()
{
$refDB = new ReferenceLinkDB();
$this->assertEquals($refDB->countPrivateLinks(), count_private($refDB->getLinks()));
}
}