Add private link counter
This commit is contained in:
parent
03eb19ac60
commit
141a86c503
4 changed files with 30 additions and 15 deletions
tests
|
@ -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()));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue