mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-24 08:53:05 +03:00
Made the tests executable again (#1042).
This commit is contained in:
parent
5d8d60a20f
commit
e2ab306888
28 changed files with 22 additions and 42 deletions
|
@ -28,7 +28,10 @@
|
|||
"minimum-stability": "stable",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"EA\\Engine\\": "engine/"
|
||||
"EA\\Engine\\": [
|
||||
"engine/",
|
||||
"tests/engine/"
|
||||
]
|
||||
}
|
||||
},
|
||||
"require": {
|
||||
|
@ -45,7 +48,7 @@
|
|||
},
|
||||
"require-dev": {
|
||||
"roave/security-advisories": "dev-master",
|
||||
"phpunit/phpunit": "^9"
|
||||
"phpunit/phpunit": "^9.5"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "php vendor/bin/phpunit tests"
|
||||
|
|
4
composer.lock
generated
4
composer.lock
generated
|
@ -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": "38fd62b1f2842600782427033aa9e826",
|
||||
"content-hash": "691584c0c433458674bdb8e6b295f10c",
|
||||
"packages": [
|
||||
{
|
||||
"name": "firebase/php-jwt",
|
||||
|
@ -3759,5 +3759,5 @@
|
|||
"ext-gd": "*"
|
||||
},
|
||||
"platform-dev": [],
|
||||
"plugin-api-version": "2.0.0"
|
||||
"plugin-api-version": "2.1.0"
|
||||
}
|
||||
|
|
31
phpunit.xml
31
phpunit.xml
|
@ -1,31 +1,8 @@
|
|||
<phpunit
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/|version|/phpunit.xsd"
|
||||
backupGlobals="true"
|
||||
backupStaticAttributes="false"
|
||||
bootstrap="tests/phpunit/bootstrap.php"
|
||||
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
|
||||
bootstrap="tests/bootstrap.php"
|
||||
colors="true"
|
||||
cacheResult="false"
|
||||
cacheTokens="false"
|
||||
colors="false"
|
||||
convertErrorsToExceptions="true"
|
||||
convertNoticesToExceptions="true"
|
||||
convertWarningsToExceptions="true"
|
||||
forceCoversAnnotation="false"
|
||||
printerClass="PHPUnit\TextUI\ResultPrinter"
|
||||
processIsolation="false"
|
||||
stopOnError="false"
|
||||
stopOnFailure="false"
|
||||
stopOnIncomplete="false"
|
||||
stopOnSkipped="false"
|
||||
stopOnRisky="false"
|
||||
testSuiteLoaderClass="PHPUnit\Runner\StandardTestSuiteLoader"
|
||||
timeoutForSmallTests="1"
|
||||
timeoutForMediumTests="10"
|
||||
timeoutForLargeTests="60"
|
||||
verbose="false">
|
||||
<filter>
|
||||
<whitelist>
|
||||
<directory suffix=".php">src/engine</directory>
|
||||
</whitelist>
|
||||
</filter>
|
||||
>
|
||||
</phpunit>
|
||||
|
|
|
@ -13,5 +13,5 @@
|
|||
|
||||
// Bootstrap Easy!Appointments PHPUnit Tests
|
||||
|
||||
require_once __DIR__ . '/../../config.php';
|
||||
require_once __DIR__ . '/../../vendor/autoload.php';
|
||||
require_once __DIR__ . '/../config.php';
|
||||
require_once __DIR__ . '/../vendor/autoload.php';
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
namespace EA\Engine\Api\V1;
|
||||
|
||||
use EA\Engine\Type\NonEmptyText;
|
||||
use EA\Engine\Types\NonEmptyText;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class AuthorizationTest extends TestCase {
|
|
@ -11,7 +11,7 @@
|
|||
* @since v1.2.0
|
||||
* ---------------------------------------------------------------------------- */
|
||||
|
||||
namespace EA\Engine\Type;
|
||||
namespace EA\Engine\Types;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
* @since v1.2.0
|
||||
* ---------------------------------------------------------------------------- */
|
||||
|
||||
namespace EA\Engine\Type;
|
||||
namespace EA\Engine\Types;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
* @since v1.2.0
|
||||
* ---------------------------------------------------------------------------- */
|
||||
|
||||
namespace EA\Engine\Type;
|
||||
namespace EA\Engine\Types;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
* @since v1.2.0
|
||||
* ---------------------------------------------------------------------------- */
|
||||
|
||||
namespace EA\Engine\Type;
|
||||
namespace EA\Engine\Types;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
* @since v1.2.0
|
||||
* ---------------------------------------------------------------------------- */
|
||||
|
||||
namespace EA\Engine\Type;
|
||||
namespace EA\Engine\Types;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
* @since v1.2.0
|
||||
* ---------------------------------------------------------------------------- */
|
||||
|
||||
namespace EA\Engine\Type;
|
||||
namespace EA\Engine\Types;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
* @since v1.2.0
|
||||
* ---------------------------------------------------------------------------- */
|
||||
|
||||
namespace EA\Engine\Type;
|
||||
namespace EA\Engine\Types;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
* @since v1.2.0
|
||||
* ---------------------------------------------------------------------------- */
|
||||
|
||||
namespace EA\Engine\Type;
|
||||
namespace EA\Engine\Types;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
Loading…
Reference in a new issue