diff options
author | Mario <mario@mariovavti.com> | 2021-10-22 08:07:19 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-10-22 08:07:19 +0000 |
commit | 8bae40449f2a5bfcc6ef86f82be1e15bdb9b9acd (patch) | |
tree | 0ec6ef6ebfff3b9e07fb90df99b6caba654eccb6 /library/urlify/tests | |
parent | bc3bb4694a7bd3f41a08c4676db6dc999790d5e6 (diff) | |
download | volse-hubzilla-8bae40449f2a5bfcc6ef86f82be1e15bdb9b9acd.tar.gz volse-hubzilla-8bae40449f2a5bfcc6ef86f82be1e15bdb9b9acd.tar.bz2 volse-hubzilla-8bae40449f2a5bfcc6ef86f82be1e15bdb9b9acd.zip |
remove library/urlify and use vendor/jbroadway/urlify instead
Diffstat (limited to 'library/urlify/tests')
-rw-r--r-- | library/urlify/tests/URLifyTest.php | 31 | ||||
-rw-r--r-- | library/urlify/tests/bootstrap.php | 9 | ||||
-rw-r--r-- | library/urlify/tests/phpunit.xml | 8 |
3 files changed, 0 insertions, 48 deletions
diff --git a/library/urlify/tests/URLifyTest.php b/library/urlify/tests/URLifyTest.php deleted file mode 100644 index 26ecb5dea..000000000 --- a/library/urlify/tests/URLifyTest.php +++ /dev/null @@ -1,31 +0,0 @@ -<?php -class URLifyTest extends PHPUnit_Framework_TestCase { - function test_downcode () { - $this->assertEquals (' J\'etudie le francais ', URLify::downcode (' J\'étudie le français ')); - $this->assertEquals ('Lo siento, no hablo espanol.', URLify::downcode ('Lo siento, no hablo español.')); - $this->assertEquals ('F3PWS', URLify::downcode ('ΦΞΠΏΣ')); - } - - function test_filter () { - $this->assertEquals ('jetudie-le-francais', URLify::filter (' J\'étudie le français ')); - $this->assertEquals ('lo-siento-no-hablo-espanol', URLify::filter ('Lo siento, no hablo español.')); - $this->assertEquals ('f3pws', URLify::filter ('ΦΞΠΏΣ')); - } - - function test_add_chars () { - $this->assertEquals ('¿ ® ¼ ¼ ¾ ¶', URLify::downcode ('¿ ® ¼ ¼ ¾ ¶')); - URLify::add_chars (array ( - '¿' => '?', '®' => '(r)', '¼' => '1/4', - '¼' => '1/2', '¾' => '3/4', '¶' => 'P' - )); - $this->assertEquals ('? (r) 1/2 1/2 3/4 P', URLify::downcode ('¿ ® ¼ ¼ ¾ ¶')); - } - - function test_remove_words () { - $this->assertEquals ('foo-bar', URLify::filter ('foo bar')); - URLify::remove_words (array ('foo', 'bar')); - $this->assertEquals ('', URLify::filter ('foo bar')); - } -} - -?> diff --git a/library/urlify/tests/bootstrap.php b/library/urlify/tests/bootstrap.php deleted file mode 100644 index d56d46665..000000000 --- a/library/urlify/tests/bootstrap.php +++ /dev/null @@ -1,9 +0,0 @@ -<?php -set_error_handler(function () { - echo file_get_contents(dirname(__DIR__).'/INSTALL'); - exit(1); -}, E_ALL); - -require_once dirname(__DIR__) . '/vendor/autoload.php'; - -restore_error_handler(); diff --git a/library/urlify/tests/phpunit.xml b/library/urlify/tests/phpunit.xml deleted file mode 100644 index 2666a3ccb..000000000 --- a/library/urlify/tests/phpunit.xml +++ /dev/null @@ -1,8 +0,0 @@ -<phpunit bootstrap="bootstrap.php"> - <testsuite name="URLify Test Suite"> - <directory>.</directory> - </testsuite> - <logging> - <log type="coverage-text" target="php://stdout" showUncoveredFiles="false"/> - </logging> -</phpunit> |