namespacing: \Shaarli\Netscape\NetscapeBookmarkUtils
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
This commit is contained in:
parent
a932f486f2
commit
349b014401
12 changed files with 26 additions and 19 deletions
|
@ -1,5 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
namespace Shaarli\Netscape;
|
||||||
|
|
||||||
|
use DateTime;
|
||||||
|
use DateTimeZone;
|
||||||
|
use Exception;
|
||||||
use Psr\Log\LogLevel;
|
use Psr\Log\LogLevel;
|
||||||
use Shaarli\Bookmark\LinkDB;
|
use Shaarli\Bookmark\LinkDB;
|
||||||
use Shaarli\Config\ConfigManager;
|
use Shaarli\Config\ConfigManager;
|
|
@ -45,6 +45,7 @@
|
||||||
"Shaarli\\Exceptions\\": "application/exceptions",
|
"Shaarli\\Exceptions\\": "application/exceptions",
|
||||||
"Shaarli\\Feed\\": "application/feed",
|
"Shaarli\\Feed\\": "application/feed",
|
||||||
"Shaarli\\Http\\": "application/http",
|
"Shaarli\\Http\\": "application/http",
|
||||||
|
"Shaarli\\Netscape\\": "application/netscape",
|
||||||
"Shaarli\\Render\\": "application/render",
|
"Shaarli\\Render\\": "application/render",
|
||||||
"Shaarli\\Security\\": "application/security",
|
"Shaarli\\Security\\": "application/security",
|
||||||
"Shaarli\\Updater\\": "application/updater",
|
"Shaarli\\Updater\\": "application/updater",
|
||||||
|
|
|
@ -63,7 +63,6 @@
|
||||||
require_once 'application/http/UrlUtils.php';
|
require_once 'application/http/UrlUtils.php';
|
||||||
require_once 'application/updater/UpdaterUtils.php';
|
require_once 'application/updater/UpdaterUtils.php';
|
||||||
require_once 'application/FileUtils.php';
|
require_once 'application/FileUtils.php';
|
||||||
require_once 'application/NetscapeBookmarkUtils.php';
|
|
||||||
require_once 'application/TimeZone.php';
|
require_once 'application/TimeZone.php';
|
||||||
require_once 'application/Utils.php';
|
require_once 'application/Utils.php';
|
||||||
require_once 'application/PluginManager.php';
|
require_once 'application/PluginManager.php';
|
||||||
|
@ -76,6 +75,7 @@
|
||||||
use \Shaarli\Feed\FeedBuilder;
|
use \Shaarli\Feed\FeedBuilder;
|
||||||
use \Shaarli\History;
|
use \Shaarli\History;
|
||||||
use \Shaarli\Languages;
|
use \Shaarli\Languages;
|
||||||
|
use \Shaarli\Netscape\NetscapeBookmarkUtils;
|
||||||
use \Shaarli\Render\PageBuilder;
|
use \Shaarli\Render\PageBuilder;
|
||||||
use \Shaarli\Render\ThemeUtils;
|
use \Shaarli\Render\ThemeUtils;
|
||||||
use \Shaarli\Router;
|
use \Shaarli\Router;
|
||||||
|
|
|
@ -1,13 +1,14 @@
|
||||||
<?php
|
<?php
|
||||||
|
namespace Shaarli\Netscape;
|
||||||
|
|
||||||
use Shaarli\Bookmark\LinkDB;
|
use Shaarli\Bookmark\LinkDB;
|
||||||
|
|
||||||
require_once 'application/NetscapeBookmarkUtils.php';
|
require_once 'tests/utils/ReferenceLinkDB.php';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Netscape bookmark export
|
* Netscape bookmark export
|
||||||
*/
|
*/
|
||||||
class BookmarkExportTest extends PHPUnit_Framework_TestCase
|
class BookmarkExportTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var string datastore to test write operations
|
* @var string datastore to test write operations
|
||||||
|
@ -15,7 +16,7 @@ class BookmarkExportTest extends PHPUnit_Framework_TestCase
|
||||||
protected static $testDatastore = 'sandbox/datastore.php';
|
protected static $testDatastore = 'sandbox/datastore.php';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var ReferenceLinkDB instance.
|
* @var \ReferenceLinkDB instance.
|
||||||
*/
|
*/
|
||||||
protected static $refDb = null;
|
protected static $refDb = null;
|
||||||
|
|
||||||
|
@ -29,7 +30,7 @@ class BookmarkExportTest extends PHPUnit_Framework_TestCase
|
||||||
*/
|
*/
|
||||||
public static function setUpBeforeClass()
|
public static function setUpBeforeClass()
|
||||||
{
|
{
|
||||||
self::$refDb = new ReferenceLinkDB();
|
self::$refDb = new \ReferenceLinkDB();
|
||||||
self::$refDb->write(self::$testDatastore);
|
self::$refDb->write(self::$testDatastore);
|
||||||
self::$linkDb = new LinkDB(self::$testDatastore, true, false);
|
self::$linkDb = new LinkDB(self::$testDatastore, true, false);
|
||||||
}
|
}
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
namespace Shaarli\Netscape;
|
||||||
|
|
||||||
require_once 'application/NetscapeBookmarkUtils.php';
|
use DateTime;
|
||||||
|
|
||||||
use Shaarli\Bookmark\LinkDB;
|
use Shaarli\Bookmark\LinkDB;
|
||||||
use Shaarli\Config\ConfigManager;
|
use Shaarli\Config\ConfigManager;
|
||||||
use Shaarli\History;
|
use Shaarli\History;
|
||||||
|
@ -28,7 +28,7 @@ function file2array($filename)
|
||||||
/**
|
/**
|
||||||
* Netscape bookmark import
|
* Netscape bookmark import
|
||||||
*/
|
*/
|
||||||
class BookmarkImportTest extends PHPUnit_Framework_TestCase
|
class BookmarkImportTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var string datastore to test write operations
|
* @var string datastore to test write operations
|
Loading…
Reference in a new issue