diff --git a/phpunit.xml.dist b/phpunit.xml.dist
index ec61a3b8f..3c9d515fb 100644
--- a/phpunit.xml.dist
+++ b/phpunit.xml.dist
@@ -1,34 +1,34 @@
-
-
-
-
- src
-
- src/rb.php
- src/bb-modules/Spamchecker/recaptchalib.php
- src/bb-modules/Spamchecker/akismet.curl.class.php
- src/bb-library/Box/Zip.php
- src/bb-vendor
- src/bb-data
- src/bb-library/Registrar/includes
- src/bb-modules/Filemanager/src
- src/bb-modules/Servicecentovacast/ccapiclient
- src/bb-library/php-gettext
- src/bb-themes
- src/install
-
-
-
-
\ No newline at end of file
+
+
+
+ src
+
+
+ src/rb.php
+ src/bb-modules/Spamchecker/recaptchalib.php
+ src/bb-modules/Spamchecker/akismet.curl.class.php
+ src/bb-library/Box/Zip.php
+ src/bb-vendor
+ src/bb-data
+ src/bb-library/Registrar/includes
+ src/bb-modules/Filemanager/src
+ src/bb-modules/Servicecentovacast/ccapiclient
+ src/bb-library/php-gettext
+ src/bb-themes
+ src/install
+
+
+
+
+ tests/bb-library
+
+
+ tests/integration
+
+
+
+
+
+
+
diff --git a/src/bb-modules/Email/Service.php b/src/bb-modules/Email/Service.php
index d65067a04..571199534 100644
--- a/src/bb-modules/Email/Service.php
+++ b/src/bb-modules/Email/Service.php
@@ -313,7 +313,18 @@ class Service implements \Box\InjectionAwareInterface
}
try {
+
+ $mod = $this->di['mod']('email');
+ $settings = $mod->getConfig();
+
+ if (isset($settings['log_enabled']) && $settings['log_enabled']) {
+ $activityService = $this->di['mod_service']('activity');
+ $activityService->logEmail($email->subject, $email->client_id, $email->sender, $email->recipients, $email->content_html, $email->content_text);
+ }
+
$mail->send($transport, $settings);
+
+
} catch (\Exception $e) {
error_log($e->getMessage());
}
@@ -323,9 +334,6 @@ class Service implements \Box\InjectionAwareInterface
return true;
}
-
-
-
public function templateGetSearchQuery($data)
{
$query = "SELECT * FROM email_template";
diff --git a/src/composer.json b/src/composer.json
index 5dda4ddb2..438c34c34 100644
--- a/src/composer.json
+++ b/src/composer.json
@@ -40,8 +40,7 @@
},
"require-dev": {
- "phpunit/phpunit": "^7.0",
- "phpunit/dbunit": "4.0.0",
+ "phpunit/phpunit": "^9.0",
"squizlabs/php_codesniffer": "1.*"
},
diff --git a/src/composer.lock b/src/composer.lock
index 63f850d98..87c2b8ce7 100644
--- a/src/composer.lock
+++ b/src/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "ade25a1467695ce9656137751b91bd27",
+ "content-hash": "61556a0e814aa34603e8a0f8ce034fbc",
"packages": [
{
"name": "geoip2/geoip2",
@@ -198,29 +198,29 @@
},
{
"name": "maxmind-db/reader",
- "version": "v1.6.0",
+ "version": "v1.7.0",
"source": {
"type": "git",
"url": "https://github.com/maxmind/MaxMind-DB-Reader-php.git",
- "reference": "febd4920bf17c1da84cef58e56a8227dfb37fbe4"
+ "reference": "942553da239f12051275f9c666538b5dd09e2908"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/maxmind/MaxMind-DB-Reader-php/zipball/febd4920bf17c1da84cef58e56a8227dfb37fbe4",
- "reference": "febd4920bf17c1da84cef58e56a8227dfb37fbe4",
+ "url": "https://api.github.com/repos/maxmind/MaxMind-DB-Reader-php/zipball/942553da239f12051275f9c666538b5dd09e2908",
+ "reference": "942553da239f12051275f9c666538b5dd09e2908",
"shasum": ""
},
"require": {
- "php": ">=5.6"
+ "php": ">=7.2"
},
"conflict": {
- "ext-maxminddb": "<1.6.0,>=2.0.0"
+ "ext-maxminddb": "<1.7.0,>=2.0.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "2.*",
"php-coveralls/php-coveralls": "^2.1",
- "phpunit/phpcov": "^3.0",
- "phpunit/phpunit": "5.*",
+ "phpunit/phpcov": ">=6.0.0",
+ "phpunit/phpunit": ">=8.0.0,<10.0.0",
"squizlabs/php_codesniffer": "3.*"
},
"suggest": {
@@ -254,7 +254,7 @@
"geolocation",
"maxmind"
],
- "time": "2019-12-19T22:59:03+00:00"
+ "time": "2020-08-07T22:10:05+00:00"
},
{
"name": "michelf/php-markdown",
@@ -424,30 +424,34 @@
},
{
"name": "pimple/pimple",
- "version": "v2.0.0",
+ "version": "v3.3.0",
"source": {
"type": "git",
"url": "https://github.com/silexphp/Pimple.git",
- "reference": "f99b3df12991c22463927aa6a18fd9b2212917f2"
+ "reference": "e55d12f9d6a0e7f9c85992b73df1267f46279930"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/silexphp/Pimple/zipball/f99b3df12991c22463927aa6a18fd9b2212917f2",
- "reference": "f99b3df12991c22463927aa6a18fd9b2212917f2",
+ "url": "https://api.github.com/repos/silexphp/Pimple/zipball/e55d12f9d6a0e7f9c85992b73df1267f46279930",
+ "reference": "e55d12f9d6a0e7f9c85992b73df1267f46279930",
"shasum": ""
},
"require": {
- "php": ">=5.3.0"
+ "php": "^7.2.5",
+ "psr/container": "^1.0"
+ },
+ "require-dev": {
+ "symfony/phpunit-bridge": "^3.4|^4.4|^5.0"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "2.0.x-dev"
+ "dev-master": "3.3.x-dev"
}
},
"autoload": {
"psr-0": {
- "Pimple": "lib/"
+ "Pimple": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
@@ -460,13 +464,62 @@
"email": "fabien@symfony.com"
}
],
- "description": "Pimple is a simple Dependency Injection Container for PHP 5.3",
- "homepage": "http://pimple.sensiolabs.org",
+ "description": "Pimple, a simple Dependency Injection Container",
+ "homepage": "https://pimple.symfony.com",
"keywords": [
"container",
"dependency injection"
],
- "time": "2014-02-10T08:05:32+00:00"
+ "time": "2020-03-03T09:12:48+00:00"
+ },
+ {
+ "name": "psr/container",
+ "version": "1.0.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/php-fig/container.git",
+ "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/php-fig/container/zipball/b7ce3b176482dbbc1245ebf52b181af44c2cf55f",
+ "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.0.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Psr\\Container\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "PHP-FIG",
+ "homepage": "http://www.php-fig.org/"
+ }
+ ],
+ "description": "Common Container Interface (PHP FIG PSR-11)",
+ "homepage": "https://github.com/php-fig/container",
+ "keywords": [
+ "PSR-11",
+ "container",
+ "container-interface",
+ "container-interop",
+ "psr"
+ ],
+ "time": "2017-02-14T16:28:37+00:00"
},
{
"name": "rev42/tfpdf",
@@ -623,7 +676,7 @@
},
{
"name": "symfony/polyfill-ctype",
- "version": "v1.18.0",
+ "version": "v1.18.1",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-ctype.git",
@@ -699,7 +752,7 @@
},
{
"name": "symfony/polyfill-mbstring",
- "version": "v1.18.0",
+ "version": "v1.18.1",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-mbstring.git",
@@ -831,32 +884,31 @@
},
{
"name": "twig/twig",
- "version": "v2.9.0",
+ "version": "v2.13.0",
"source": {
"type": "git",
"url": "https://github.com/twigphp/Twig.git",
- "reference": "82a1c055c8ed4c4705023bfd0405f3c74db6e3ae"
+ "reference": "46a612ba1bbf6ee1c58acabacd868212ff8a2911"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/twigphp/Twig/zipball/82a1c055c8ed4c4705023bfd0405f3c74db6e3ae",
- "reference": "82a1c055c8ed4c4705023bfd0405f3c74db6e3ae",
+ "url": "https://api.github.com/repos/twigphp/Twig/zipball/46a612ba1bbf6ee1c58acabacd868212ff8a2911",
+ "reference": "46a612ba1bbf6ee1c58acabacd868212ff8a2911",
"shasum": ""
},
"require": {
- "php": "^7.0",
+ "php": ">=7.1.3",
"symfony/polyfill-ctype": "^1.8",
"symfony/polyfill-mbstring": "^1.3"
},
"require-dev": {
"psr/container": "^1.0",
- "symfony/debug": "^2.7",
- "symfony/phpunit-bridge": "^3.4.19|^4.1.8"
+ "symfony/phpunit-bridge": "^4.4.9|^5.0.9"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "2.9-dev"
+ "dev-master": "2.13-dev"
}
},
"autoload": {
@@ -878,15 +930,14 @@
"homepage": "http://fabien.potencier.org",
"role": "Lead Developer"
},
+ {
+ "name": "Twig Team",
+ "role": "Contributors"
+ },
{
"name": "Armin Ronacher",
"email": "armin.ronacher@active-4.com",
"role": "Project Founder"
- },
- {
- "name": "Twig Team",
- "homepage": "https://twig.symfony.com/contributors",
- "role": "Contributors"
}
],
"description": "Twig, the flexible, fast, and secure template language for PHP",
@@ -894,7 +945,29 @@
"keywords": [
"templating"
],
- "time": "2019-04-28T06:57:38+00:00"
+ "funding": [
+ {
+ "url": "https://certification.symfony.com/",
+ "type": "custom"
+ },
+ {
+ "url": "https://live.symfony.com/",
+ "type": "custom"
+ },
+ {
+ "url": "https://symfony.com/cloud/",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/twig/twig",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2020-07-05T13:08:05+00:00"
}
],
"packages-dev": [
@@ -1023,29 +1096,82 @@
"time": "2020-06-29T13:22:24+00:00"
},
{
- "name": "phar-io/manifest",
- "version": "1.0.3",
+ "name": "nikic/php-parser",
+ "version": "v4.8.0",
"source": {
"type": "git",
- "url": "https://github.com/phar-io/manifest.git",
- "reference": "7761fcacf03b4d4f16e7ccb606d4879ca431fcf4"
+ "url": "https://github.com/nikic/PHP-Parser.git",
+ "reference": "8c58eb4cd4f3883f82611abeac2efbc3dbed787e"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/phar-io/manifest/zipball/7761fcacf03b4d4f16e7ccb606d4879ca431fcf4",
- "reference": "7761fcacf03b4d4f16e7ccb606d4879ca431fcf4",
+ "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/8c58eb4cd4f3883f82611abeac2efbc3dbed787e",
+ "reference": "8c58eb4cd4f3883f82611abeac2efbc3dbed787e",
+ "shasum": ""
+ },
+ "require": {
+ "ext-tokenizer": "*",
+ "php": ">=7.0"
+ },
+ "require-dev": {
+ "ircmaxell/php-yacc": "^0.0.6",
+ "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0"
+ },
+ "bin": [
+ "bin/php-parse"
+ ],
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "4.8-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "PhpParser\\": "lib/PhpParser"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Nikita Popov"
+ }
+ ],
+ "description": "A PHP parser written in PHP",
+ "keywords": [
+ "parser",
+ "php"
+ ],
+ "time": "2020-08-09T10:23:20+00:00"
+ },
+ {
+ "name": "phar-io/manifest",
+ "version": "2.0.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/phar-io/manifest.git",
+ "reference": "85265efd3af7ba3ca4b2a2c34dbfc5788dd29133"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/phar-io/manifest/zipball/85265efd3af7ba3ca4b2a2c34dbfc5788dd29133",
+ "reference": "85265efd3af7ba3ca4b2a2c34dbfc5788dd29133",
"shasum": ""
},
"require": {
"ext-dom": "*",
"ext-phar": "*",
- "phar-io/version": "^2.0",
- "php": "^5.6 || ^7.0"
+ "ext-xmlwriter": "*",
+ "phar-io/version": "^3.0.1",
+ "php": "^7.2 || ^8.0"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.0.x-dev"
+ "dev-master": "2.0.x-dev"
}
},
"autoload": {
@@ -1075,24 +1201,24 @@
}
],
"description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)",
- "time": "2018-07-08T19:23:20+00:00"
+ "time": "2020-06-27T14:33:11+00:00"
},
{
"name": "phar-io/version",
- "version": "2.0.1",
+ "version": "3.0.2",
"source": {
"type": "git",
"url": "https://github.com/phar-io/version.git",
- "reference": "45a2ec53a73c70ce41d55cedef9063630abaf1b6"
+ "reference": "c6bb6825def89e0a32220f88337f8ceaf1975fa0"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/phar-io/version/zipball/45a2ec53a73c70ce41d55cedef9063630abaf1b6",
- "reference": "45a2ec53a73c70ce41d55cedef9063630abaf1b6",
+ "url": "https://api.github.com/repos/phar-io/version/zipball/c6bb6825def89e0a32220f88337f8ceaf1975fa0",
+ "reference": "c6bb6825def89e0a32220f88337f8ceaf1975fa0",
"shasum": ""
},
"require": {
- "php": "^5.6 || ^7.0"
+ "php": "^7.2 || ^8.0"
},
"type": "library",
"autoload": {
@@ -1122,7 +1248,7 @@
}
],
"description": "Library for handling version information and constraints",
- "time": "2018-07-08T19:19:57+00:00"
+ "time": "2020-06-27T14:39:04+00:00"
},
{
"name": "phpdocumentor/reflection-common",
@@ -1175,28 +1301,27 @@
},
{
"name": "phpdocumentor/reflection-docblock",
- "version": "5.1.0",
+ "version": "5.2.0",
"source": {
"type": "git",
"url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
- "reference": "cd72d394ca794d3466a3b2fc09d5a6c1dc86b47e"
+ "reference": "3170448f5769fe19f456173d833734e0ff1b84df"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/cd72d394ca794d3466a3b2fc09d5a6c1dc86b47e",
- "reference": "cd72d394ca794d3466a3b2fc09d5a6c1dc86b47e",
+ "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/3170448f5769fe19f456173d833734e0ff1b84df",
+ "reference": "3170448f5769fe19f456173d833734e0ff1b84df",
"shasum": ""
},
"require": {
- "ext-filter": "^7.1",
- "php": "^7.2",
- "phpdocumentor/reflection-common": "^2.0",
- "phpdocumentor/type-resolver": "^1.0",
- "webmozart/assert": "^1"
+ "ext-filter": "*",
+ "php": "^7.2 || ^8.0",
+ "phpdocumentor/reflection-common": "^2.2",
+ "phpdocumentor/type-resolver": "^1.3",
+ "webmozart/assert": "^1.9.1"
},
"require-dev": {
- "doctrine/instantiator": "^1",
- "mockery/mockery": "^1"
+ "mockery/mockery": "~1.3.2"
},
"type": "library",
"extra": {
@@ -1224,7 +1349,7 @@
}
],
"description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
- "time": "2020-02-22T12:28:44+00:00"
+ "time": "2020-07-20T20:05:34+00:00"
},
{
"name": "phpdocumentor/type-resolver",
@@ -1334,95 +1459,46 @@
],
"time": "2020-07-08T12:44:21+00:00"
},
- {
- "name": "phpunit/dbunit",
- "version": "4.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/dbunit.git",
- "reference": "e77b469c3962b5a563f09a2a989f1c9bd38b8615"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/dbunit/zipball/e77b469c3962b5a563f09a2a989f1c9bd38b8615",
- "reference": "e77b469c3962b5a563f09a2a989f1c9bd38b8615",
- "shasum": ""
- },
- "require": {
- "ext-pdo": "*",
- "ext-simplexml": "*",
- "php": "^7.1",
- "phpunit/phpunit": "^7.0",
- "symfony/yaml": "^3.0 || ^4.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "PHPUnit extension for database interaction testing",
- "homepage": "https://github.com/sebastianbergmann/dbunit/",
- "keywords": [
- "database",
- "testing",
- "xunit"
- ],
- "abandoned": true,
- "time": "2018-02-07T06:47:59+00:00"
- },
{
"name": "phpunit/php-code-coverage",
- "version": "6.1.4",
+ "version": "9.1.3",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-code-coverage.git",
- "reference": "807e6013b00af69b6c5d9ceb4282d0393dbb9d8d"
+ "reference": "4abbce3b0ad05f2e7143ea5f775d5513cb5261e4"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/807e6013b00af69b6c5d9ceb4282d0393dbb9d8d",
- "reference": "807e6013b00af69b6c5d9ceb4282d0393dbb9d8d",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/4abbce3b0ad05f2e7143ea5f775d5513cb5261e4",
+ "reference": "4abbce3b0ad05f2e7143ea5f775d5513cb5261e4",
"shasum": ""
},
"require": {
"ext-dom": "*",
+ "ext-libxml": "*",
"ext-xmlwriter": "*",
- "php": "^7.1",
- "phpunit/php-file-iterator": "^2.0",
- "phpunit/php-text-template": "^1.2.1",
- "phpunit/php-token-stream": "^3.0",
- "sebastian/code-unit-reverse-lookup": "^1.0.1",
- "sebastian/environment": "^3.1 || ^4.0",
- "sebastian/version": "^2.0.1",
- "theseer/tokenizer": "^1.1"
+ "nikic/php-parser": "^4.8",
+ "php": "^7.3 || ^8.0",
+ "phpunit/php-file-iterator": "^3.0.3",
+ "phpunit/php-text-template": "^2.0.2",
+ "sebastian/code-unit-reverse-lookup": "^2.0.2",
+ "sebastian/complexity": "^2.0",
+ "sebastian/environment": "^5.1.2",
+ "sebastian/lines-of-code": "^1.0",
+ "sebastian/version": "^3.0.1",
+ "theseer/tokenizer": "^1.2.0"
},
"require-dev": {
- "phpunit/phpunit": "^7.0"
+ "phpunit/phpunit": "^9.3"
},
"suggest": {
- "ext-xdebug": "^2.6.0"
+ "ext-pcov": "*",
+ "ext-xdebug": "*"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "6.1-dev"
+ "dev-master": "9.1-dev"
}
},
"autoload": {
@@ -1448,32 +1524,38 @@
"testing",
"xunit"
],
- "time": "2018-10-31T16:06:48+00:00"
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-08-10T17:45:51+00:00"
},
{
"name": "phpunit/php-file-iterator",
- "version": "2.0.2",
+ "version": "3.0.4",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-file-iterator.git",
- "reference": "050bedf145a257b1ff02746c31894800e5122946"
+ "reference": "25fefc5b19835ca653877fe081644a3f8c1d915e"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/050bedf145a257b1ff02746c31894800e5122946",
- "reference": "050bedf145a257b1ff02746c31894800e5122946",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/25fefc5b19835ca653877fe081644a3f8c1d915e",
+ "reference": "25fefc5b19835ca653877fe081644a3f8c1d915e",
"shasum": ""
},
"require": {
- "php": "^7.1"
+ "php": "^7.3 || ^8.0"
},
"require-dev": {
- "phpunit/phpunit": "^7.1"
+ "phpunit/phpunit": "^9.0"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "2.0.x-dev"
+ "dev-master": "3.0-dev"
}
},
"autoload": {
@@ -1498,26 +1580,99 @@
"filesystem",
"iterator"
],
- "time": "2018-09-13T20:33:42+00:00"
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-07-11T05:18:21+00:00"
},
{
- "name": "phpunit/php-text-template",
- "version": "1.2.1",
+ "name": "phpunit/php-invoker",
+ "version": "3.1.0",
"source": {
"type": "git",
- "url": "https://github.com/sebastianbergmann/php-text-template.git",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686"
+ "url": "https://github.com/sebastianbergmann/php-invoker.git",
+ "reference": "7a85b66acc48cacffdf87dadd3694e7123674298"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/7a85b66acc48cacffdf87dadd3694e7123674298",
+ "reference": "7a85b66acc48cacffdf87dadd3694e7123674298",
"shasum": ""
},
"require": {
- "php": ">=5.3.3"
+ "php": "^7.3 || ^8.0"
+ },
+ "require-dev": {
+ "ext-pcntl": "*",
+ "phpunit/phpunit": "^9.0"
+ },
+ "suggest": {
+ "ext-pcntl": "*"
},
"type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "3.1-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de",
+ "role": "lead"
+ }
+ ],
+ "description": "Invoke callables with a timeout",
+ "homepage": "https://github.com/sebastianbergmann/php-invoker/",
+ "keywords": [
+ "process"
+ ],
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-08-06T07:04:15+00:00"
+ },
+ {
+ "name": "phpunit/php-text-template",
+ "version": "2.0.2",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/php-text-template.git",
+ "reference": "6ff9c8ea4d3212b88fcf74e25e516e2c51c99324"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/6ff9c8ea4d3212b88fcf74e25e516e2c51c99324",
+ "reference": "6ff9c8ea4d3212b88fcf74e25e516e2c51c99324",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.3 || ^8.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^9.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.0-dev"
+ }
+ },
"autoload": {
"classmap": [
"src/"
@@ -1539,32 +1694,38 @@
"keywords": [
"template"
],
- "time": "2015-06-21T13:50:34+00:00"
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-06-26T11:55:37+00:00"
},
{
"name": "phpunit/php-timer",
- "version": "2.1.2",
+ "version": "5.0.1",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-timer.git",
- "reference": "1038454804406b0b5f5f520358e78c1c2f71501e"
+ "reference": "cc49734779cbb302bf51a44297dab8c4bbf941e7"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/1038454804406b0b5f5f520358e78c1c2f71501e",
- "reference": "1038454804406b0b5f5f520358e78c1c2f71501e",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/cc49734779cbb302bf51a44297dab8c4bbf941e7",
+ "reference": "cc49734779cbb302bf51a44297dab8c4bbf941e7",
"shasum": ""
},
"require": {
- "php": "^7.1"
+ "php": "^7.3 || ^8.0"
},
"require-dev": {
- "phpunit/phpunit": "^7.0"
+ "phpunit/phpunit": "^9.2"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "2.1-dev"
+ "dev-master": "5.0-dev"
}
},
"autoload": {
@@ -1588,106 +1749,64 @@
"keywords": [
"timer"
],
- "time": "2019-06-07T04:22:29+00:00"
- },
- {
- "name": "phpunit/php-token-stream",
- "version": "3.1.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-token-stream.git",
- "reference": "995192df77f63a59e47f025390d2d1fdf8f425ff"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/995192df77f63a59e47f025390d2d1fdf8f425ff",
- "reference": "995192df77f63a59e47f025390d2d1fdf8f425ff",
- "shasum": ""
- },
- "require": {
- "ext-tokenizer": "*",
- "php": "^7.1"
- },
- "require-dev": {
- "phpunit/phpunit": "^7.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.1-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
+ "funding": [
{
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
}
],
- "description": "Wrapper around PHP's tokenizer extension.",
- "homepage": "https://github.com/sebastianbergmann/php-token-stream/",
- "keywords": [
- "tokenizer"
- ],
- "time": "2019-09-17T06:23:10+00:00"
+ "time": "2020-06-26T11:58:13+00:00"
},
{
"name": "phpunit/phpunit",
- "version": "7.5.20",
+ "version": "9.3.7",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git",
- "reference": "9467db479d1b0487c99733bb1e7944d32deded2c"
+ "reference": "c638a0cac77347980352485912de48c99b42ad00"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/9467db479d1b0487c99733bb1e7944d32deded2c",
- "reference": "9467db479d1b0487c99733bb1e7944d32deded2c",
+ "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/c638a0cac77347980352485912de48c99b42ad00",
+ "reference": "c638a0cac77347980352485912de48c99b42ad00",
"shasum": ""
},
"require": {
- "doctrine/instantiator": "^1.1",
+ "doctrine/instantiator": "^1.3.1",
"ext-dom": "*",
"ext-json": "*",
"ext-libxml": "*",
"ext-mbstring": "*",
"ext-xml": "*",
- "myclabs/deep-copy": "^1.7",
- "phar-io/manifest": "^1.0.2",
- "phar-io/version": "^2.0",
- "php": "^7.1",
- "phpspec/prophecy": "^1.7",
- "phpunit/php-code-coverage": "^6.0.7",
- "phpunit/php-file-iterator": "^2.0.1",
- "phpunit/php-text-template": "^1.2.1",
- "phpunit/php-timer": "^2.1",
- "sebastian/comparator": "^3.0",
- "sebastian/diff": "^3.0",
- "sebastian/environment": "^4.0",
- "sebastian/exporter": "^3.1",
- "sebastian/global-state": "^2.0",
- "sebastian/object-enumerator": "^3.0.3",
- "sebastian/resource-operations": "^2.0",
- "sebastian/version": "^2.0.1"
- },
- "conflict": {
- "phpunit/phpunit-mock-objects": "*"
+ "ext-xmlwriter": "*",
+ "myclabs/deep-copy": "^1.10.1",
+ "phar-io/manifest": "^2.0.1",
+ "phar-io/version": "^3.0.2",
+ "php": "^7.3 || ^8.0",
+ "phpspec/prophecy": "^1.11.1",
+ "phpunit/php-code-coverage": "^9.1.1",
+ "phpunit/php-file-iterator": "^3.0.4",
+ "phpunit/php-invoker": "^3.1",
+ "phpunit/php-text-template": "^2.0.2",
+ "phpunit/php-timer": "^5.0.1",
+ "sebastian/code-unit": "^1.0.5",
+ "sebastian/comparator": "^4.0.3",
+ "sebastian/diff": "^4.0.2",
+ "sebastian/environment": "^5.1.2",
+ "sebastian/exporter": "^4.0.2",
+ "sebastian/global-state": "^5.0",
+ "sebastian/object-enumerator": "^4.0.2",
+ "sebastian/resource-operations": "^3.0.2",
+ "sebastian/type": "^2.2.1",
+ "sebastian/version": "^3.0.1"
},
"require-dev": {
- "ext-pdo": "*"
+ "ext-pdo": "*",
+ "phpspec/prophecy-phpunit": "^2.0.1"
},
"suggest": {
"ext-soap": "*",
- "ext-xdebug": "*",
- "phpunit/php-invoker": "^2.0"
+ "ext-xdebug": "*"
},
"bin": [
"phpunit"
@@ -1695,12 +1814,15 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "7.5-dev"
+ "dev-master": "9.3-dev"
}
},
"autoload": {
"classmap": [
"src/"
+ ],
+ "files": [
+ "src/Framework/Assert/Functions.php"
]
},
"notification-url": "https://packagist.org/downloads/",
@@ -1721,32 +1843,94 @@
"testing",
"xunit"
],
- "time": "2020-01-08T08:45:45+00:00"
+ "funding": [
+ {
+ "url": "https://phpunit.de/donate.html",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-08-11T15:36:12+00:00"
},
{
- "name": "sebastian/code-unit-reverse-lookup",
- "version": "1.0.1",
+ "name": "sebastian/code-unit",
+ "version": "1.0.5",
"source": {
"type": "git",
- "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git",
- "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18"
+ "url": "https://github.com/sebastianbergmann/code-unit.git",
+ "reference": "c1e2df332c905079980b119c4db103117e5e5c90"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/4419fcdb5eabb9caa61a27c7a1db532a6b55dd18",
- "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18",
+ "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/c1e2df332c905079980b119c4db103117e5e5c90",
+ "reference": "c1e2df332c905079980b119c4db103117e5e5c90",
"shasum": ""
},
"require": {
- "php": "^5.6 || ^7.0"
+ "php": "^7.3 || ^8.0"
},
"require-dev": {
- "phpunit/phpunit": "^5.7 || ^6.0"
+ "phpunit/phpunit": "^9.0"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.0.x-dev"
+ "dev-master": "1.0-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de",
+ "role": "lead"
+ }
+ ],
+ "description": "Collection of value objects that represent the PHP code units",
+ "homepage": "https://github.com/sebastianbergmann/code-unit",
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-06-26T12:50:45+00:00"
+ },
+ {
+ "name": "sebastian/code-unit-reverse-lookup",
+ "version": "2.0.2",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git",
+ "reference": "ee51f9bb0c6d8a43337055db3120829fa14da819"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/ee51f9bb0c6d8a43337055db3120829fa14da819",
+ "reference": "ee51f9bb0c6d8a43337055db3120829fa14da819",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.3 || ^8.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^9.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.0-dev"
}
},
"autoload": {
@@ -1766,34 +1950,40 @@
],
"description": "Looks up which function or method a line of code belongs to",
"homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/",
- "time": "2017-03-04T06:30:41+00:00"
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-06-26T12:04:00+00:00"
},
{
"name": "sebastian/comparator",
- "version": "3.0.2",
+ "version": "4.0.3",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/comparator.git",
- "reference": "5de4fc177adf9bce8df98d8d141a7559d7ccf6da"
+ "reference": "dcc580eadfaa4e7f9d2cf9ae1922134ea962e14f"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/5de4fc177adf9bce8df98d8d141a7559d7ccf6da",
- "reference": "5de4fc177adf9bce8df98d8d141a7559d7ccf6da",
+ "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/dcc580eadfaa4e7f9d2cf9ae1922134ea962e14f",
+ "reference": "dcc580eadfaa4e7f9d2cf9ae1922134ea962e14f",
"shasum": ""
},
"require": {
- "php": "^7.1",
- "sebastian/diff": "^3.0",
- "sebastian/exporter": "^3.1"
+ "php": "^7.3 || ^8.0",
+ "sebastian/diff": "^4.0",
+ "sebastian/exporter": "^4.0"
},
"require-dev": {
- "phpunit/phpunit": "^7.1"
+ "phpunit/phpunit": "^9.0"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "3.0-dev"
+ "dev-master": "4.0-dev"
}
},
"autoload": {
@@ -1806,6 +1996,10 @@
"BSD-3-Clause"
],
"authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de"
+ },
{
"name": "Jeff Welch",
"email": "whatthejeff@gmail.com"
@@ -1817,10 +2011,6 @@
{
"name": "Bernhard Schussek",
"email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
}
],
"description": "Provides the functionality to compare PHP values for equality",
@@ -1830,33 +2020,39 @@
"compare",
"equality"
],
- "time": "2018-07-12T15:12:46+00:00"
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-06-26T12:05:46+00:00"
},
{
- "name": "sebastian/diff",
- "version": "3.0.2",
+ "name": "sebastian/complexity",
+ "version": "2.0.0",
"source": {
"type": "git",
- "url": "https://github.com/sebastianbergmann/diff.git",
- "reference": "720fcc7e9b5cf384ea68d9d930d480907a0c1a29"
+ "url": "https://github.com/sebastianbergmann/complexity.git",
+ "reference": "33fcd6a26656c6546f70871244ecba4b4dced097"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/720fcc7e9b5cf384ea68d9d930d480907a0c1a29",
- "reference": "720fcc7e9b5cf384ea68d9d930d480907a0c1a29",
+ "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/33fcd6a26656c6546f70871244ecba4b4dced097",
+ "reference": "33fcd6a26656c6546f70871244ecba4b4dced097",
"shasum": ""
},
"require": {
- "php": "^7.1"
+ "nikic/php-parser": "^4.7",
+ "php": "^7.3 || ^8.0"
},
"require-dev": {
- "phpunit/phpunit": "^7.5 || ^8.0",
- "symfony/process": "^2 || ^3.3 || ^4"
+ "phpunit/phpunit": "^9.2"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "3.0-dev"
+ "dev-master": "2.0-dev"
}
},
"autoload": {
@@ -1870,12 +2066,65 @@
],
"authors": [
{
- "name": "Kore Nordmann",
- "email": "mail@kore-nordmann.de"
- },
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de",
+ "role": "lead"
+ }
+ ],
+ "description": "Library for calculating the complexity of PHP code units",
+ "homepage": "https://github.com/sebastianbergmann/complexity",
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-07-25T14:01:34+00:00"
+ },
+ {
+ "name": "sebastian/diff",
+ "version": "4.0.2",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/diff.git",
+ "reference": "1e90b4cf905a7d06c420b1d2e9d11a4dc8a13113"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/1e90b4cf905a7d06c420b1d2e9d11a4dc8a13113",
+ "reference": "1e90b4cf905a7d06c420b1d2e9d11a4dc8a13113",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.3 || ^8.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^9.0",
+ "symfony/process": "^4.2 || ^5"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "4.0-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
{
"name": "Sebastian Bergmann",
"email": "sebastian@phpunit.de"
+ },
+ {
+ "name": "Kore Nordmann",
+ "email": "mail@kore-nordmann.de"
}
],
"description": "Diff implementation",
@@ -1886,27 +2135,33 @@
"unidiff",
"unified diff"
],
- "time": "2019-02-04T06:01:07+00:00"
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-06-30T04:46:02+00:00"
},
{
"name": "sebastian/environment",
- "version": "4.2.3",
+ "version": "5.1.2",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/environment.git",
- "reference": "464c90d7bdf5ad4e8a6aea15c091fec0603d4368"
+ "reference": "0a757cab9d5b7ef49a619f1143e6c9c1bc0fe9d2"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/464c90d7bdf5ad4e8a6aea15c091fec0603d4368",
- "reference": "464c90d7bdf5ad4e8a6aea15c091fec0603d4368",
+ "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/0a757cab9d5b7ef49a619f1143e6c9c1bc0fe9d2",
+ "reference": "0a757cab9d5b7ef49a619f1143e6c9c1bc0fe9d2",
"shasum": ""
},
"require": {
- "php": "^7.1"
+ "php": "^7.3 || ^8.0"
},
"require-dev": {
- "phpunit/phpunit": "^7.5"
+ "phpunit/phpunit": "^9.0"
},
"suggest": {
"ext-posix": "*"
@@ -1914,7 +2169,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "4.2-dev"
+ "dev-master": "5.0-dev"
}
},
"autoload": {
@@ -1939,34 +2194,40 @@
"environment",
"hhvm"
],
- "time": "2019-11-20T08:46:58+00:00"
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-06-26T12:07:24+00:00"
},
{
"name": "sebastian/exporter",
- "version": "3.1.2",
+ "version": "4.0.2",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/exporter.git",
- "reference": "68609e1261d215ea5b21b7987539cbfbe156ec3e"
+ "reference": "571d721db4aec847a0e59690b954af33ebf9f023"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/68609e1261d215ea5b21b7987539cbfbe156ec3e",
- "reference": "68609e1261d215ea5b21b7987539cbfbe156ec3e",
+ "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/571d721db4aec847a0e59690b954af33ebf9f023",
+ "reference": "571d721db4aec847a0e59690b954af33ebf9f023",
"shasum": ""
},
"require": {
- "php": "^7.0",
- "sebastian/recursion-context": "^3.0"
+ "php": "^7.3 || ^8.0",
+ "sebastian/recursion-context": "^4.0"
},
"require-dev": {
"ext-mbstring": "*",
- "phpunit/phpunit": "^6.0"
+ "phpunit/phpunit": "^9.2"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "3.1.x-dev"
+ "dev-master": "4.0-dev"
}
},
"autoload": {
@@ -2006,27 +2267,36 @@
"export",
"exporter"
],
- "time": "2019-09-14T09:02:43+00:00"
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-06-26T12:08:55+00:00"
},
{
"name": "sebastian/global-state",
- "version": "2.0.0",
+ "version": "5.0.0",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/global-state.git",
- "reference": "e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4"
+ "reference": "22ae663c951bdc39da96603edc3239ed3a299097"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4",
- "reference": "e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4",
+ "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/22ae663c951bdc39da96603edc3239ed3a299097",
+ "reference": "22ae663c951bdc39da96603edc3239ed3a299097",
"shasum": ""
},
"require": {
- "php": "^7.0"
+ "php": "^7.3 || ^8.0",
+ "sebastian/object-reflector": "^2.0",
+ "sebastian/recursion-context": "^4.0"
},
"require-dev": {
- "phpunit/phpunit": "^6.0"
+ "ext-dom": "*",
+ "phpunit/phpunit": "^9.3"
},
"suggest": {
"ext-uopz": "*"
@@ -2034,7 +2304,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "2.0-dev"
+ "dev-master": "5.0-dev"
}
},
"autoload": {
@@ -2057,34 +2327,93 @@
"keywords": [
"global state"
],
- "time": "2017-04-27T15:39:26+00:00"
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-08-07T04:09:03+00:00"
},
{
- "name": "sebastian/object-enumerator",
- "version": "3.0.3",
+ "name": "sebastian/lines-of-code",
+ "version": "1.0.0",
"source": {
"type": "git",
- "url": "https://github.com/sebastianbergmann/object-enumerator.git",
- "reference": "7cfd9e65d11ffb5af41198476395774d4c8a84c5"
+ "url": "https://github.com/sebastianbergmann/lines-of-code.git",
+ "reference": "e02bf626f404b5daec382a7b8a6a4456e49017e5"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/7cfd9e65d11ffb5af41198476395774d4c8a84c5",
- "reference": "7cfd9e65d11ffb5af41198476395774d4c8a84c5",
+ "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/e02bf626f404b5daec382a7b8a6a4456e49017e5",
+ "reference": "e02bf626f404b5daec382a7b8a6a4456e49017e5",
"shasum": ""
},
"require": {
- "php": "^7.0",
- "sebastian/object-reflector": "^1.1.1",
- "sebastian/recursion-context": "^3.0"
+ "nikic/php-parser": "^4.6",
+ "php": "^7.3 || ^8.0"
},
"require-dev": {
- "phpunit/phpunit": "^6.0"
+ "phpunit/phpunit": "^9.2"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "3.0.x-dev"
+ "dev-master": "1.0-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de",
+ "role": "lead"
+ }
+ ],
+ "description": "Library for counting the lines of code in PHP source code",
+ "homepage": "https://github.com/sebastianbergmann/lines-of-code",
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-07-22T18:33:42+00:00"
+ },
+ {
+ "name": "sebastian/object-enumerator",
+ "version": "4.0.2",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/object-enumerator.git",
+ "reference": "074fed2d0a6d08e1677dd8ce9d32aecb384917b8"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/074fed2d0a6d08e1677dd8ce9d32aecb384917b8",
+ "reference": "074fed2d0a6d08e1677dd8ce9d32aecb384917b8",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.3 || ^8.0",
+ "sebastian/object-reflector": "^2.0",
+ "sebastian/recursion-context": "^4.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^9.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "4.0-dev"
}
},
"autoload": {
@@ -2104,122 +2433,33 @@
],
"description": "Traverses array structures and object graphs to enumerate all referenced objects",
"homepage": "https://github.com/sebastianbergmann/object-enumerator/",
- "time": "2017-08-03T12:35:26+00:00"
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-06-26T12:11:32+00:00"
},
{
"name": "sebastian/object-reflector",
- "version": "1.1.1",
+ "version": "2.0.2",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/object-reflector.git",
- "reference": "773f97c67f28de00d397be301821b06708fca0be"
+ "reference": "127a46f6b057441b201253526f81d5406d6c7840"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/773f97c67f28de00d397be301821b06708fca0be",
- "reference": "773f97c67f28de00d397be301821b06708fca0be",
+ "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/127a46f6b057441b201253526f81d5406d6c7840",
+ "reference": "127a46f6b057441b201253526f81d5406d6c7840",
"shasum": ""
},
"require": {
- "php": "^7.0"
+ "php": "^7.3 || ^8.0"
},
"require-dev": {
- "phpunit/phpunit": "^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.1-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Allows reflection of object attributes, including inherited and non-public ones",
- "homepage": "https://github.com/sebastianbergmann/object-reflector/",
- "time": "2017-03-29T09:07:27+00:00"
- },
- {
- "name": "sebastian/recursion-context",
- "version": "3.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/recursion-context.git",
- "reference": "5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8",
- "reference": "5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8",
- "shasum": ""
- },
- "require": {
- "php": "^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides functionality to recursively process PHP variables",
- "homepage": "http://www.github.com/sebastianbergmann/recursion-context",
- "time": "2017-03-03T06:23:57+00:00"
- },
- {
- "name": "sebastian/resource-operations",
- "version": "2.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/resource-operations.git",
- "reference": "4d7a795d35b889bf80a0cc04e08d77cedfa917a9"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/4d7a795d35b889bf80a0cc04e08d77cedfa917a9",
- "reference": "4d7a795d35b889bf80a0cc04e08d77cedfa917a9",
- "shasum": ""
- },
- "require": {
- "php": "^7.1"
+ "phpunit/phpunit": "^9.0"
},
"type": "library",
"extra": {
@@ -2242,31 +2482,199 @@
"email": "sebastian@phpunit.de"
}
],
- "description": "Provides a list of PHP built-in functions that operate on resources",
- "homepage": "https://www.github.com/sebastianbergmann/resource-operations",
- "time": "2018-10-04T04:07:39+00:00"
+ "description": "Allows reflection of object attributes, including inherited and non-public ones",
+ "homepage": "https://github.com/sebastianbergmann/object-reflector/",
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-06-26T12:12:55+00:00"
},
{
- "name": "sebastian/version",
- "version": "2.0.1",
+ "name": "sebastian/recursion-context",
+ "version": "4.0.2",
"source": {
"type": "git",
- "url": "https://github.com/sebastianbergmann/version.git",
- "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019"
+ "url": "https://github.com/sebastianbergmann/recursion-context.git",
+ "reference": "062231bf61d2b9448c4fa5a7643b5e1829c11d63"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019",
- "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019",
+ "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/062231bf61d2b9448c4fa5a7643b5e1829c11d63",
+ "reference": "062231bf61d2b9448c4fa5a7643b5e1829c11d63",
"shasum": ""
},
"require": {
- "php": ">=5.6"
+ "php": "^7.3 || ^8.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^9.0"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "2.0.x-dev"
+ "dev-master": "4.0-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de"
+ },
+ {
+ "name": "Jeff Welch",
+ "email": "whatthejeff@gmail.com"
+ },
+ {
+ "name": "Adam Harvey",
+ "email": "aharvey@php.net"
+ }
+ ],
+ "description": "Provides functionality to recursively process PHP variables",
+ "homepage": "http://www.github.com/sebastianbergmann/recursion-context",
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-06-26T12:14:17+00:00"
+ },
+ {
+ "name": "sebastian/resource-operations",
+ "version": "3.0.2",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/resource-operations.git",
+ "reference": "0653718a5a629b065e91f774595267f8dc32e213"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/0653718a5a629b065e91f774595267f8dc32e213",
+ "reference": "0653718a5a629b065e91f774595267f8dc32e213",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.3 || ^8.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^9.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "3.0-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de"
+ }
+ ],
+ "description": "Provides a list of PHP built-in functions that operate on resources",
+ "homepage": "https://www.github.com/sebastianbergmann/resource-operations",
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-06-26T12:16:22+00:00"
+ },
+ {
+ "name": "sebastian/type",
+ "version": "2.2.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/type.git",
+ "reference": "86991e2b33446cd96e648c18bcdb1e95afb2c05a"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/86991e2b33446cd96e648c18bcdb1e95afb2c05a",
+ "reference": "86991e2b33446cd96e648c18bcdb1e95afb2c05a",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.3 || ^8.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^9.2"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.2-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de",
+ "role": "lead"
+ }
+ ],
+ "description": "Collection of value objects that represent the types of the PHP type system",
+ "homepage": "https://github.com/sebastianbergmann/type",
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-07-05T08:31:53+00:00"
+ },
+ {
+ "name": "sebastian/version",
+ "version": "3.0.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/version.git",
+ "reference": "626586115d0ed31cb71483be55beb759b5af5a3c"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/626586115d0ed31cb71483be55beb759b5af5a3c",
+ "reference": "626586115d0ed31cb71483be55beb759b5af5a3c",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.3 || ^8.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "3.0-dev"
}
},
"autoload": {
@@ -2287,7 +2695,13 @@
],
"description": "Library that helps with managing the version number of Git-hosted PHP projects",
"homepage": "https://github.com/sebastianbergmann/version",
- "time": "2016-10-03T07:35:21+00:00"
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-06-26T12:18:43+00:00"
},
{
"name": "squizlabs/php_codesniffer",
@@ -2364,79 +2778,6 @@
],
"time": "2014-12-04T22:32:15+00:00"
},
- {
- "name": "symfony/yaml",
- "version": "v4.4.10",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/yaml.git",
- "reference": "c2d2cc66e892322cfcc03f8f12f8340dbd7a3f8a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/yaml/zipball/c2d2cc66e892322cfcc03f8f12f8340dbd7a3f8a",
- "reference": "c2d2cc66e892322cfcc03f8f12f8340dbd7a3f8a",
- "shasum": ""
- },
- "require": {
- "php": ">=7.1.3",
- "symfony/polyfill-ctype": "~1.8"
- },
- "conflict": {
- "symfony/console": "<3.4"
- },
- "require-dev": {
- "symfony/console": "^3.4|^4.0|^5.0"
- },
- "suggest": {
- "symfony/console": "For validating YAML files using the lint command"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Yaml\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Yaml Component",
- "homepage": "https://symfony.com",
- "funding": [
- {
- "url": "https://symfony.com/sponsor",
- "type": "custom"
- },
- {
- "url": "https://github.com/fabpot",
- "type": "github"
- },
- {
- "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
- "type": "tidelift"
- }
- ],
- "time": "2020-05-20T08:37:50+00:00"
- },
{
"name": "theseer/tokenizer",
"version": "1.2.0",
diff --git a/tests/bb-library/Box/ConfigTest.php b/tests/bb-library/Box/Box_ConfigTest.php
similarity index 88%
rename from tests/bb-library/Box/ConfigTest.php
rename to tests/bb-library/Box/Box_ConfigTest.php
index 8c7a43b4e..e3c27970d 100644
--- a/tests/bb-library/Box/ConfigTest.php
+++ b/tests/bb-library/Box/Box_ConfigTest.php
@@ -1,5 +1,5 @@
assertInstanceOf('Box_ExceptionAuth', $e);
+ $this->assertInstanceOf(Box_ExceptionAuth::class, $e);
}
}
\ No newline at end of file
diff --git a/tests/bb-library/Box/Box_LicenseTest.php b/tests/bb-library/Box/Box_LicenseTest.php
new file mode 100644
index 000000000..13f43a559
--- /dev/null
+++ b/tests/bb-library/Box/Box_LicenseTest.php
@@ -0,0 +1,20 @@
+di = $di;
+ }
+
+ public function testLicense()
+ {
+ self::expectNotToPerformAssertions();
+ $license = $this->di['license'];
+ $license->getDetails();
+ $license->getDetails(true);
+ }
+}
\ No newline at end of file
diff --git a/tests/bb-library/Box/LogTest.php b/tests/bb-library/Box/Box_LogTest.php
similarity index 85%
rename from tests/bb-library/Box/LogTest.php
rename to tests/bb-library/Box/Box_LogTest.php
index c68ba5870..21d0ec203 100644
--- a/tests/bb-library/Box/LogTest.php
+++ b/tests/bb-library/Box/Box_LogTest.php
@@ -2,11 +2,11 @@
/**
* @group Core
*/
-class Box_LogTest extends PHPUnit_Framework_TestCase
+class Box_LogTest extends PHPUnit\Framework\TestCase
{
public function testLog()
{
- $service_mock = $this->getMockBuilder('Box\\Mod\\Activity\\Service')->getMock();
+ $service_mock = $this->getMockBuilder(Box\Mod\Activity\Service::class)->getMock();
$service_mock->expects($this->atLeastOnce())
->method('logEvent')
->will($this->returnValue(true));
diff --git a/tests/bb-library/Box/MailTest.php b/tests/bb-library/Box/Box_MailTest.php
similarity index 77%
rename from tests/bb-library/Box/MailTest.php
rename to tests/bb-library/Box/Box_MailTest.php
index 75176e94d..e3077b2ea 100644
--- a/tests/bb-library/Box/MailTest.php
+++ b/tests/bb-library/Box/Box_MailTest.php
@@ -2,14 +2,14 @@
/**
* @group Core
*/
-class Box_MailTest extends PHPUnit_Framework_TestCase
+class Box_MailTest extends PHPUnit\Framework\TestCase
{
public function testsend_TransportSendMail()
{
$transport = 'sendmail';
- $mailMock = $this->getMockBuilder('Box_Mail')
+ $mailMock = $this->getMockBuilder(Box_Mail::class)
->setMethods(array('_sendMail'))
->getMock();
@@ -41,7 +41,9 @@ class Box_MailTest extends PHPUnit_Framework_TestCase
$mail = new Box_Mail();
- $this->setExpectedException('\Box_Exception', sprintf('Unknown mail transport: %s', $transport));
+ $this->expectException(\Box_Exception::class);
+ $this->expectExceptionMessage(sprintf('Unknown mail transport: %s', $transport));
+
$mail->send($transport);
}
@@ -51,7 +53,7 @@ class Box_MailTest extends PHPUnit_Framework_TestCase
$mail = new Box_Mail();
$result = $mail->setBodyHtml($context);
- $this->assertInstanceOf('Box_Mail', $result);
+ $this->assertInstanceOf(Box_Mail::class, $result);
$result = $mail->getBody();
$this->assertEquals($context, $result);
@@ -64,7 +66,7 @@ class Box_MailTest extends PHPUnit_Framework_TestCase
$result = $mail->setFrom($context);
- $this->assertInstanceOf('Box_Mail', $result);
+ $this->assertInstanceOf(Box_Mail::class, $result);
}
public function testsetSubject()
@@ -73,7 +75,7 @@ class Box_MailTest extends PHPUnit_Framework_TestCase
$mail = new Box_Mail();
$result = $mail->setSubject($context);
- $this->assertInstanceOf('Box_Mail', $result);
+ $this->assertInstanceOf(Box_Mail::class, $result);
$result = $mail->getSubject();
$this->assertEquals($context, $result);
@@ -85,7 +87,7 @@ class Box_MailTest extends PHPUnit_Framework_TestCase
$mail = new Box_Mail();
$result = $mail->setReplyTo($context);
- $this->assertInstanceOf('Box_Mail', $result);
+ $this->assertInstanceOf(Box_Mail::class, $result);
}
public function testaddTo()
@@ -94,6 +96,6 @@ class Box_MailTest extends PHPUnit_Framework_TestCase
$mail = new Box_Mail();
$result = $mail->addTo($context);
- $this->assertInstanceOf('Box_Mail', $result);
+ $this->assertInstanceOf(Box_Mail::class, $result);
}
}
\ No newline at end of file
diff --git a/tests/bb-library/Box/ModTest.php b/tests/bb-library/Box/Box_ModTest.php
similarity index 83%
rename from tests/bb-library/Box/ModTest.php
rename to tests/bb-library/Box/Box_ModTest.php
index 478cd9512..3a76807c7 100644
--- a/tests/bb-library/Box/ModTest.php
+++ b/tests/bb-library/Box/Box_ModTest.php
@@ -2,7 +2,7 @@
/**
* @group Core
*/
-class Box_ModTest extends PHPUnit_Framework_TestCase
+class Box_ModTest extends PHPUnit\Framework\TestCase
{
public function testEmptyConfig()
{
@@ -27,7 +27,7 @@ class Box_ModTest extends PHPUnit_Framework_TestCase
$this->assertTrue($mod->isCore());
$array = $mod->getCoreModules();
- $this->assertInternalType('array', $array);
+ $this->assertIsArray($array);
$mod = new Box_Mod('example');
$this->assertFalse($mod->isCore());
@@ -43,7 +43,7 @@ class Box_ModTest extends PHPUnit_Framework_TestCase
$this->assertTrue($bool);
$obj = $mod->getService();
- $this->assertInstanceOf('Box\\Mod\\Example\\Service', $obj);
+ $this->assertInstanceOf(Box\Mod\Example\Service::class, $obj);
$bool = $mod->hasAdminController();
$this->assertTrue($bool);
@@ -52,13 +52,13 @@ class Box_ModTest extends PHPUnit_Framework_TestCase
$this->assertTrue($bool);
$obj = $mod->getAdminController();
- $this->assertInstanceOf('Box\\Mod\\Example\\Controller\\Admin', $obj);
+ $this->assertInstanceOf(Box\Mod\Example\Controller\Admin::class, $obj);
$bool = $mod->hasClientController();
$this->assertTrue($bool);
$obj = $mod->getClientController();
- $this->assertInstanceOf('Box\\Mod\\Example\\Controller\\Client', $obj);
+ $this->assertInstanceOf(Box\Mod\Example\Controller\Client::class, $obj);
}
public function testManifest()
@@ -73,7 +73,7 @@ class Box_ModTest extends PHPUnit_Framework_TestCase
$this->assertTrue($bool);
$array = $mod->getManifest();
- $this->assertInternalType('array', $array);
+ $this->assertIsArray($array);
}
public function testInstall()
@@ -106,7 +106,7 @@ class Box_ModTest extends PHPUnit_Framework_TestCase
$subServiceName = 'transaction';
$subService = $mod->getService($subServiceName);
- $this->assertInstanceOf('\Box\Mod\Invoice\ServiceTransaction', $subService);
+ $this->assertInstanceOf(\Box\Mod\Invoice\ServiceTransaction::class, $subService);
}
diff --git a/tests/bb-library/Box/Box_PasswordTest.php b/tests/bb-library/Box/Box_PasswordTest.php
index 09d788e6a..471060690 100644
--- a/tests/bb-library/Box/Box_PasswordTest.php
+++ b/tests/bb-library/Box/Box_PasswordTest.php
@@ -1,7 +1,7 @@
hashIt($password);
- $this->assertInternalType('string', $hash);
+ $this->assertIsString($hash);
$this->assertNotEmpty($hash);
$veryfied = $boxPassword->verify($password, $hash);
- $this->assertInternalType('bool', $veryfied);
+ $this->assertIsBool($veryfied);
$this->assertTrue($veryfied);
$needRehashing = $boxPassword->needsRehash($hash);
- $this->assertInternalType('bool', $needRehashing);
+ $this->assertIsBool($needRehashing);
$this->assertFalse($needRehashing);
}
@@ -45,14 +45,14 @@ class Box_PasswordTest extends PHPUnit_Framework_TestCase {
$boxPassword = new Box_Password();
$password = '123456';
$hash = $boxPassword->hashIt($password);
- $this->assertInternalType('string', $hash);
+ $this->assertIsString($hash);
$this->assertNotEmpty($hash);
$newOptions = array('cost' => 15);
$boxPassword->setOptions($newOptions);
$needRehashing = $boxPassword->needsRehash($hash);
- $this->assertInternalType('bool', $needRehashing);
+ $this->assertIsBool($needRehashing);
$this->assertTrue($needRehashing);
}
}
diff --git a/tests/bb-library/Box/PeriodTest.php b/tests/bb-library/Box/Box_PeriodTest.php
similarity index 65%
rename from tests/bb-library/Box/PeriodTest.php
rename to tests/bb-library/Box/Box_PeriodTest.php
index 6cd7a4245..ccbc5d742 100644
--- a/tests/bb-library/Box/PeriodTest.php
+++ b/tests/bb-library/Box/Box_PeriodTest.php
@@ -2,21 +2,21 @@
/**
* @group Core
*/
-class Box_PeriodTest extends PHPUnit_Framework_TestCase
+class Box_PeriodTest extends PHPUnit\Framework\TestCase
{
- /**
- * @expectedException \Box_Exception
- */
+
public function testException()
{
+ $this->expectException(\Box_Exception::class);
+ $this->expectExceptionMessage('Invalid period code. Period definition must be 2 chars length');
$p = new Box_Period('1');
- }
- /**
- * @expectedException \Box_Exception
- */
+ }
+
public function testException2()
{
+ $this->expectException(\Box_Exception::class);
+ $this->expectExceptionMessage('Period Error. Unit Z is not defined');
$p = new Box_Period('1Z');
}
diff --git a/tests/bb-library/Box/RequestTest.php b/tests/bb-library/Box/Box_RequestTest.php
similarity index 68%
rename from tests/bb-library/Box/RequestTest.php
rename to tests/bb-library/Box/Box_RequestTest.php
index 7b4529fa2..fc3044b3b 100644
--- a/tests/bb-library/Box/RequestTest.php
+++ b/tests/bb-library/Box/Box_RequestTest.php
@@ -2,7 +2,7 @@
/**
* @group Core
*/
-class Box_RequestTest extends PHPUnit_Framework_TestCase
+class Box_RequestTest extends PHPUnit\Framework\TestCase
{
public function testDi()
{
@@ -94,14 +94,14 @@ class Box_RequestTest extends PHPUnit_Framework_TestCase
{
$request = new Box_Request();
$full_request = $request->getRawBody();
- $this->assertInternalType('string', $full_request);
+ $this->assertIsString($full_request);
}
public function testHeaders()
{
$request = new Box_Request();
$headers = $request->getHeaders();
- $this->assertInternalType('array', $headers);
+ $this->assertIsArray($headers);
}
public function testGetMethod()
@@ -152,16 +152,12 @@ class Box_RequestTest extends PHPUnit_Framework_TestCase
public function testIs()
{
- $request = $this->getMockBuilder('Box_Request')
- ->setMethods(array('getMethod'))
+ $request = $this->getMockBuilder(Box_Request::class)
+ ->setMethods(['getMethod'])
->getMock();
- $request->expects($this->at(0))->method('getMethod')->will($this->returnValue('POST'));
- $request->expects($this->at(1))->method('getMethod')->will($this->returnValue('GET'));
- $request->expects($this->at(2))->method('getMethod')->will($this->returnValue('PUT'));
- $request->expects($this->at(3))->method('getMethod')->will($this->returnValue('PATCH'));
- $request->expects($this->at(4))->method('getMethod')->will($this->returnValue('HEAD'));
- $request->expects($this->at(5))->method('getMethod')->will($this->returnValue('DELETE'));
- $request->expects($this->at(6))->method('getMethod')->will($this->returnValue('OPTIONS'));
+ $request->expects($this->exactly(7))
+ ->method('getMethod')
+ ->willReturnOnConsecutiveCalls('POST', 'GET', 'PUT', 'PATCH', 'HEAD', 'DELETE', 'OPTIONS');
$this->assertTrue($request->isPost());
$this->assertTrue($request->isGet());
@@ -175,18 +171,17 @@ class Box_RequestTest extends PHPUnit_Framework_TestCase
public function testIsMethods()
{
$request = $this->getMockBuilder('Box_Request')
- ->setMethods(array('getMethod'))
+ ->setMethods(['getMethod'])
->getMock();
- $request->expects($this->at(0))->method('getMethod')->will($this->returnValue('POST'));
- $request->expects($this->at(1))->method('getMethod')->will($this->returnValue('GET'));
- $request->expects($this->at(2))->method('getMethod')->will($this->returnValue('GET'));
- $request->expects($this->at(3))->method('getMethod')->will($this->returnValue('PUT'));
-
+ $request->expects($this->exactly(4))
+ ->method('getMethod')
+ ->willReturnOnConsecutiveCalls('POST', 'GET', 'GET', 'PUT');
+
$this->assertTrue($request->isMethod('POST'));
$this->assertFalse($request->isMethod('POST'));
$this->assertTrue($request->isMethod(array('POST', 'GET')));
$this->assertFalse($request->isMethod(array('POST', 'GET')));
- }
+ }
public function testGetScheme()
{
@@ -194,17 +189,15 @@ class Box_RequestTest extends PHPUnit_Framework_TestCase
->setMethods(array('getServer'))
->getMock();
- $request->expects($this->at(0))->method('getServer')->will($this->returnValueMap(
- array(
- array('HTTPS', '1'),
- )
- ));
-
- $request->expects($this->at(1))->method('getServer')->will($this->returnValueMap(
- array(
- array('HTTPS', null),
- )
- ));
+ $request->expects($this->exactly(2))
+ ->method('getServer')
+ ->will($this->onConsecutiveCalls($this->returnValueMap(
+ [
+ ['HTTPS', '1'],
+ ['HTTPS', null]
+
+ ]
+ )));
$this->assertEquals('https', $request->getScheme());
$this->assertEquals('http', $request->getScheme());
@@ -216,17 +209,13 @@ class Box_RequestTest extends PHPUnit_Framework_TestCase
->setMethods(array('getServer'))
->getMock();
- $request->expects($this->at(0))->method('getServer')->will($this->returnValueMap(
- array(
- array('HTTP_X_REQUESTED_WITH', 'XMLHttpRequest'),
- )
- ));
-
- $request->expects($this->at(1))->method('getServer')->will($this->returnValueMap(
- array(
- array('HTTP_X_REQUESTED_WITH', null),
- )
- ));
+ $request->expects($this->exactly(2))
+ ->method('getServer')
+ ->will($this->onConsecutiveCalls($this->returnValueMap(
+ [
+ ['HTTP_X_REQUESTED_WITH', 'XMLHttpRequest'],
+ ['HTTP_X_REQUESTED_WITH', null]
+ ])));
$this->assertTrue($request->isAjax());
$this->assertFalse($request->isAjax());
@@ -238,15 +227,12 @@ class Box_RequestTest extends PHPUnit_Framework_TestCase
->setMethods(array('getServer'))
->getMock();
- $request->expects($this->at(0))->method('getServer')->will($this->returnValueMap(
- array(
- array('SERVER_ADDR', '8.8.8.8'),
- )
- ));
-
- $request->expects($this->at(1))->method('getServer')->will($this->returnValueMap(
- array(
- array('SERVER_ADDR', null),
+ $request->expects($this->exactly(2))
+ ->method('getServer')
+ ->will($this->onConsecutiveCalls($this->returnValueMap([
+ ['SERVER_ADDR', '8.8.8.8'],
+ ['SERVER_ADDR', null]
+ ]
)
));
@@ -260,15 +246,12 @@ class Box_RequestTest extends PHPUnit_Framework_TestCase
->setMethods(array('getServer'))
->getMock();
- $request->expects($this->at(0))->method('getServer')->will($this->returnValueMap(
- array(
- array('SERVER_NAME', 'google.com'),
- )
- ));
-
- $request->expects($this->at(1))->method('getServer')->will($this->returnValueMap(
- array(
- array('SERVER_NAME', null),
+ $request->expects($this->exactly(2))
+ ->method('getServer')
+ ->will($this->onConsecutiveCalls($this->returnValueMap([
+ ['SERVER_NAME', 'google.com'],
+ ['SERVER_NAME', null]
+ ]
)
));
@@ -282,8 +265,9 @@ class Box_RequestTest extends PHPUnit_Framework_TestCase
->setMethods(array('getRawBody'))
->getMock();
- $request->expects($this->at(0))->method('getRawBody')->will($this->returnValue('{"example":1}'));
- $request->expects($this->at(1))->method('getRawBody')->will($this->returnValue('ss'));
+ $request->expects($this->exactly(2))
+ ->method('getRawBody')
+ ->will($this->onConsecutiveCalls('{"example":1}', 'ss'));
$this->assertEquals(array('example'=>1), $request->getJsonRawBody());
try {
@@ -296,21 +280,18 @@ class Box_RequestTest extends PHPUnit_Framework_TestCase
public function testGetClientAddressForwarded()
{
- $request = $this->getMockBuilder('Box_Request')
- ->setMethods(array('getServer'))
- ->getMock();
+ $request = $this->getMockBuilder(Box_Request::class)
+ ->setMethods(['getServer'])
+ ->getMock();
- $request->expects($this->at(0))->method('getServer')->will($this->returnValueMap(
- array(
- array('HTTP_X_FORWARDED_FOR', '123.123.123.120'),
+ $request->expects($this->exactly(2))
+ ->method('getServer')
+ ->withConsecutive(['HTTP_X_FORWARDED_FOR'], ['HTTP_X_FORWARDED_FOR'])
+ ->will($this->onConsecutiveCalls(
+ '123.123.123.120',
+ '123.123.123.121, 123.123.123.122'
)
- ));
-
- $request->expects($this->at(1))->method('getServer')->will($this->returnValueMap(
- array(
- array('HTTP_X_FORWARDED_FOR', '123.123.123.121, 123.123.123.122'),
- )
- ));
+ );
$this->assertEquals('123.123.123.120', $request->getClientAddress());
$this->assertEquals('123.123.123.121', $request->getClientAddress(true));
@@ -321,18 +302,15 @@ class Box_RequestTest extends PHPUnit_Framework_TestCase
$request = $this->getMockBuilder('Box_Request')
->setMethods(array('getServer'))
->getMock();
-
- $request->expects($this->at(0))->method('getServer')->will($this->returnValueMap(
- array(
- array('REMOTE_ADDR', '123.123.123.1'),
+
+ $request->expects($this->exactly(2))
+ ->method('getServer')
+ ->withConsecutive(['REMOTE_ADDR'], ['REMOTE_ADDR'])
+ ->will($this->onConsecutiveCalls(
+ '123.123.123.1',
+ '123.123.123.2, 123.123.123.122'
)
- ));
-
- $request->expects($this->at(1))->method('getServer')->will($this->returnValueMap(
- array(
- array('REMOTE_ADDR', '123.123.123.2, 123.123.123.122'),
- )
- ));
+ );
$this->assertEquals('123.123.123.1', $request->getClientAddress(false));
$this->assertEquals('123.123.123.2', $request->getClientAddress(false));
@@ -344,11 +322,11 @@ class Box_RequestTest extends PHPUnit_Framework_TestCase
->setMethods(array('getServer'))
->getMock();
- $request->expects($this->at(0))->method('getServer')->will($this->returnValueMap(
- array(
- array('HTTP_USER_AGENT', 'Chrome'),
- )
- ));
+ $request->expects($this->exactly(2))
+ ->method('getServer')
+ ->withConsecutive(['HTTP_USER_AGENT'], ['HTTP_USER_AGENT'])
+ ->willReturnOnConsecutiveCalls('Chrome', null);
+
$this->assertEquals('Chrome', $request->getUserAgent());
$this->assertNull($request->getUserAgent());
}
@@ -359,11 +337,10 @@ class Box_RequestTest extends PHPUnit_Framework_TestCase
->setMethods(array('getServer'))
->getMock();
- $request->expects($this->at(0))->method('getServer')->will($this->returnValueMap(
- array(
- array('REQUEST_URI', '/foo/bar'),
- )
- ));
+ $request->expects($this->exactly(2))
+ ->method('getServer')
+ ->withConsecutive(['REQUEST_URI'], ['REQUEST_URI'])
+ ->willReturnOnConsecutiveCalls('/foo/bar', null);
$this->assertEquals('/foo/bar', $request->getURI());
$this->assertNull($request->getURI());
@@ -375,11 +352,10 @@ class Box_RequestTest extends PHPUnit_Framework_TestCase
->setMethods(array('getServer'))
->getMock();
- $request->expects($this->at(0))->method('getServer')->will($this->returnValueMap(
- array(
- array('HTTP_HOST', 'www.google.com'),
- )
- ));
+ $request->expects($this->exactly(2))
+ ->method('getServer')
+ ->withConsecutive(['HTTP_HOST'], ['HTTP_HOST'])
+ ->willReturnOnConsecutiveCalls('www.google.com', null);
$this->assertEquals('www.google.com', $request->getHttpHost());
$this->assertNull($request->getHttpHost());
@@ -391,12 +367,10 @@ class Box_RequestTest extends PHPUnit_Framework_TestCase
$request = $this->getMockBuilder('Box_Request')
->setMethods(array('getServer'))
->getMock();
-
- $request->expects($this->at(0))->method('getServer')->will($this->returnValueMap(
- array(
- array('HTTP_ACCEPT_LANGUAGE', "en-US,en;q=0.8,fr;q=0.6,id;q=0.4,lt;q=0.2,ms;q=0.2,nl;q=0.2,pl;q=0.2,pt;q=0.2,ru;q=0.2,es;q=0.2,nb;q=0.2,ro;q=0.2"),
- )
- ));
+ $request->expects($this->once())->method('getServer')->will($this->returnValueMap(
+ [
+ ['HTTP_ACCEPT_LANGUAGE', "en-US,en;q=0.8,fr;q=0.6,id;q=0.4,lt;q=0.2,ms;q=0.2,nl;q=0.2,pl;q=0.2,pt;q=0.2,ru;q=0.2,es;q=0.2,nb;q=0.2,ro;q=0.2"]
+ ]));
$result = array (
0 =>
diff --git a/tests/bb-library/Box/SessionTest.php b/tests/bb-library/Box/Box_SessionTest.php
similarity index 94%
rename from tests/bb-library/Box/SessionTest.php
rename to tests/bb-library/Box/Box_SessionTest.php
index 3d9748074..0a2581e1f 100644
--- a/tests/bb-library/Box/SessionTest.php
+++ b/tests/bb-library/Box/Box_SessionTest.php
@@ -2,7 +2,7 @@
/**
* @group Core
*/
-class Box_SessionTestCase extends PHPUnit_Framework_TestCase
+class Box_SessionTest extends PHPUnit\Framework\TestCase
{
public function testSession()
{
diff --git a/tests/bb-library/Box/TranslateTest.php b/tests/bb-library/Box/Box_TranslateTest.php
similarity index 94%
rename from tests/bb-library/Box/TranslateTest.php
rename to tests/bb-library/Box/Box_TranslateTest.php
index 3560fadba..0b7e1ec9a 100644
--- a/tests/bb-library/Box/TranslateTest.php
+++ b/tests/bb-library/Box/Box_TranslateTest.php
@@ -2,7 +2,7 @@
/**
* @group Core
*/
-class Box_TranslateTest extends PHPUnit_Framework_TestCase
+class Box_TranslateTest extends PHPUnit\Framework\TestCase
{
public function testsetLocale()
{
diff --git a/tests/bb-library/Box/TwigLoaderTest.php b/tests/bb-library/Box/Box_TwigLoaderTest.php
similarity index 51%
rename from tests/bb-library/Box/TwigLoaderTest.php
rename to tests/bb-library/Box/Box_TwigLoaderTest.php
index 6b5f72439..9bb3301de 100644
--- a/tests/bb-library/Box/TwigLoaderTest.php
+++ b/tests/bb-library/Box/Box_TwigLoaderTest.php
@@ -4,7 +4,7 @@
*/
-class Box_TwigLoaderTest extends PHPUnit_Framework_TestCase
+class Box_TwigLoaderTest extends PHPUnit\Framework\TestCase
{
public function testTemplates()
@@ -14,16 +14,13 @@ class Box_TwigLoaderTest extends PHPUnit_Framework_TestCase
"theme" => BB_PATH_THEMES.DIRECTORY_SEPARATOR."huraga",
"type" => "client"
));
- $test = $loader->getSource("mod_example_index.phtml");
- $test2 = $loader->getSource("404.phtml");
+ $test = $loader->getSourceContext("mod_example_index.phtml");
+ $test2 = $loader->getSourceContext("404.phtml");
- $this->assertInternalType('string', $test);
- $this->assertInternalType('string', $test2);
+ $this->assertIsObject($test);
+ $this->assertIsObject($test2);
}
- /**
- * @expectedException Twig_Error_Loader
- */
public function testException()
{
$loader = new Box_TwigLoader(array(
@@ -31,7 +28,8 @@ class Box_TwigLoaderTest extends PHPUnit_Framework_TestCase
"mods" => BB_PATH_MODS,
"theme" => BB_PATH_THEMES.DIRECTORY_SEPARATOR."huraga",
));
- $test = $loader->getSource("mod_non_existing_settings.phtml");
- $test = $loader->getSource("some_random_name.phtml");
+ $this->expectException(Twig\Error\LoaderError::class);
+ $test = $loader->getSourceContext("mod_non_existing_settings.phtml");
+ $test = $loader->getSourceContext("some_random_name.phtml");
}
}
\ No newline at end of file
diff --git a/tests/bb-library/Box/ValidateTest.php b/tests/bb-library/Box/Box_ValidateTest.php
similarity index 73%
rename from tests/bb-library/Box/ValidateTest.php
rename to tests/bb-library/Box/Box_ValidateTest.php
index 37dc23025..3ba2970ed 100644
--- a/tests/bb-library/Box/ValidateTest.php
+++ b/tests/bb-library/Box/Box_ValidateTest.php
@@ -3,7 +3,7 @@
/**
* @group Core
*/
-class Box_ValidateTest extends PHPUnit_Framework_TestCase
+class Box_ValidateTest extends PHPUnit\Framework\TestCase
{
public static function domains()
{
@@ -44,11 +44,7 @@ class Box_ValidateTest extends PHPUnit_Framework_TestCase
$this->assertNull($v->checkRequiredParamsForArray($required, $data));
}
- /**
- * @expectedException \Box_Exception
- * @expectedExceptionCode 0
- * @expectedExceptionMessage ID must be set
- */
+
public function testCheckRequiredParamsForArrayNotExist()
{
$data = array();
@@ -56,15 +52,13 @@ class Box_ValidateTest extends PHPUnit_Framework_TestCase
'id' => 'ID must be set'
);
$v = new Box_Validate();
+ $this->expectException(Box_Exception::class);
+ $this->expectExceptionCode(0);
+ $this->expectExceptionMessage('ID must be set');
$v->checkRequiredParamsForArray($required, $data);
}
- /**
- * @expectedException \Box_Exception
- * @expectedExceptionCode 0
- * @expectedExceptionMessage KEY must be set
- */
public function testCheckRequiredParamsForArrayOneKeyNotExists()
{
$data = array(
@@ -74,16 +68,13 @@ class Box_ValidateTest extends PHPUnit_Framework_TestCase
'id' => 'ID must be set',
'key' => 'KEY must be set'
);
- $v = new Box_Validate();
+ $v = new Box_Validate();
+ $this->expectException(Box_Exception::class);
+ $this->expectExceptionCode(0);
+ $this->expectExceptionMessage('KEY must be set');
$v->checkRequiredParamsForArray($required, $data);
}
-
- /**
- * @expectedException \Box_Exception
- * @expectedExceptionCode 0
- * @expectedExceptionMessage KEY placeholder_key must be set
- */
public function testCheckRequiredParamsForArrayMessagePlaceholder()
{
$data = array(
@@ -95,15 +86,13 @@ class Box_ValidateTest extends PHPUnit_Framework_TestCase
);
$variables = array(':key' => 'placeholder_key');
- $v = new Box_Validate();
+ $v = new Box_Validate();
+ $this->expectException(Box_Exception::class);
+ $this->expectExceptionCode(0);
+ $this->expectExceptionMessage('KEY placeholder_key must be set');
$v->checkRequiredParamsForArray($required, $data, $variables);
}
- /**
- * @expectedException \Box_Exception
- * @expectedExceptionCode 0
- * @expectedExceptionMessage KEY placeholder_key must be set for array config
- */
public function testCheckRequiredParamsForArrayMessagePlaceholders()
{
$data = array(
@@ -118,16 +107,14 @@ class Box_ValidateTest extends PHPUnit_Framework_TestCase
':key' => 'placeholder_key',
':array' => 'config'
);
- $v = new Box_Validate();
+ $v = new Box_Validate();
+ $this->expectException(Box_Exception::class);
+ $this->expectExceptionCode(0);
+ $this->expectExceptionMessage('KEY placeholder_key must be set for array config');
$v->checkRequiredParamsForArray($required, $data, $variables);
}
- /**
- * @expectedException \Box_Exception
- * @expectedExceptionCode 12345
- * @expectedExceptionMessage KEY placeholder_key must be set
- */
public function testCheckRequiredParamsForArrayErrorCode()
{
$data = array(
@@ -139,15 +126,13 @@ class Box_ValidateTest extends PHPUnit_Framework_TestCase
);
$variables = array(':key' => 'placeholder_key');
- $v = new Box_Validate();
+ $v = new Box_Validate();
+ $this->expectException(Box_Exception::class);
+ $this->expectExceptionCode(12345);
+ $this->expectExceptionMessage('KEY placeholder_key must be set');
$v->checkRequiredParamsForArray($required, $data, $variables, 12345);
}
- /**
- * @expectedException \Box_Exception
- * @expectedExceptionCode 54321
- * @expectedExceptionMessage KEY must be set
- */
public function testCheckRequiredParamsForArrayErrorCodeVariablesNotSet()
{
$data = array(
@@ -159,6 +144,9 @@ class Box_ValidateTest extends PHPUnit_Framework_TestCase
);
$v = new Box_Validate();
+ $this->expectException(Box_Exception::class);
+ $this->expectExceptionCode(54321);
+ $this->expectExceptionMessage('KEY must be set');
$v->checkRequiredParamsForArray($required, $data, array(), 54321);
}
@@ -173,6 +161,9 @@ class Box_ValidateTest extends PHPUnit_Framework_TestCase
$v = new Box_Validate();
$v->checkRequiredParamsForArray($required, $data);
+
+ //add needed assert, set to true if no exception called in $v->checkRequiredParamsForArray
+ $this->assertTrue(true);
}
public function testcheckRequiredParamsForArray_EmptyString()
@@ -185,7 +176,10 @@ class Box_ValidateTest extends PHPUnit_Framework_TestCase
);
$v = new Box_Validate();
- $this->setExpectedException('\Box_Exception', $required['message']);
+
+ $this->expectException(\Box_Exception::class);
+ $this->expectExceptionMessage($required['message']);
+
$v->checkRequiredParamsForArray($required, $data);
}
@@ -200,7 +194,10 @@ class Box_ValidateTest extends PHPUnit_Framework_TestCase
);
$v = new Box_Validate();
- $this->setExpectedException('\Box_Exception', $required['message']);
+
+ $this->expectException(\Box_Exception::class);
+ $this->expectExceptionMessage($required['message']);
+
$v->checkRequiredParamsForArray($required, $data);
}
diff --git a/tests/bb-library/Box/LicenseTest.php b/tests/bb-library/Box/LicenseTest.php
deleted file mode 100644
index 5bf7925b0..000000000
--- a/tests/bb-library/Box/LicenseTest.php
+++ /dev/null
@@ -1,19 +0,0 @@
-di = $di;
- }
-
- public function testLicense()
- {
- $license = $this->di['license'];
-// $license->getDetails();
-// $license->getDetails(true);
- }
-}
diff --git a/tests/bb-library/Payment/Adapter/Payment_Adapter_ClientBalanceTest.php b/tests/bb-library/Payment/Adapter/Payment_Adapter_ClientBalanceTest.php
index de3ee5a39..08ecbf6f2 100644
--- a/tests/bb-library/Payment/Adapter/Payment_Adapter_ClientBalanceTest.php
+++ b/tests/bb-library/Payment/Adapter/Payment_Adapter_ClientBalanceTest.php
@@ -1,7 +1,7 @@
setDi($di);
$invoiceId = 1;
$result = $adapterMock->getHtml(null, $invoiceId, null);
- $this->assertInternalType('string', $result);
+ $this->assertIsString($result);
$this->assertEquals('Not enough in balance', $result);
}
@@ -100,7 +100,7 @@ class Payment_Adapter_ClientBalanceTest extends PHPUnit_Framework_TestCase {
$adapterMock->setDi($di);
$invoiceId = 1;
$result = $adapterMock->getHtml(null, $invoiceId, null);
- $this->assertInternalType('string', $result);
+ $this->assertIsString($result);
$this->assertEquals('Forbidden to pay deposit invoice with this gateway', $result);
}
@@ -153,7 +153,7 @@ class Payment_Adapter_ClientBalanceTest extends PHPUnit_Framework_TestCase {
$adapterMock->setDi($di);
$result = $adapterMock->getHtml(null, $invoiceId, null);
- $this->assertInternalType('string', $result);
+ $this->assertIsString($result);
$this->assertTrue(strpos($result, $url) !== false);
$this->assertTrue(strpos($result, '