Compare commits
No commits in common. "9a59a2563d25ee2fade13d8aeb494a883ccbce03" and "552eeb0c2568d42be871c27bd269f36217303b9c" have entirely different histories.
9a59a2563d
...
552eeb0c25
|
@ -6,7 +6,3 @@
|
||||||
/config.json.local
|
/config.json.local
|
||||||
/bindAPI.log
|
/bindAPI.log
|
||||||
|
|
||||||
/reports/
|
|
||||||
/bindAPI.test.log
|
|
||||||
/.phpunit.result.cache
|
|
||||||
/config.json.test
|
|
||||||
|
|
|
@ -15,19 +15,14 @@
|
||||||
"php": ">=8.1",
|
"php": ">=8.1",
|
||||||
"ext-curl": "*",
|
"ext-curl": "*",
|
||||||
"ext-json": "*",
|
"ext-json": "*",
|
||||||
"ext-mbstring": "*",
|
|
||||||
"ext-openssl": "*",
|
|
||||||
"ext-pdo": "*",
|
"ext-pdo": "*",
|
||||||
"ext-posix": "*",
|
|
||||||
"ext-sodium": "*",
|
|
||||||
"arubacao/tld-checker": "^1.2",
|
"arubacao/tld-checker": "^1.2",
|
||||||
"monolog/monolog": "^3.1",
|
"monolog/monolog": "^3.1",
|
||||||
"netresearch/jsonmapper": "^4.0",
|
|
||||||
"php-di/php-di": "^6.3",
|
"php-di/php-di": "^6.3",
|
||||||
"phplucidframe/console-table": "^1.2",
|
"phplucidframe/console-table": "^1.2",
|
||||||
"symfony/property-access": "^6.1",
|
"zircote/swagger-php": "^4.2",
|
||||||
"symfony/serializer": "^6.1",
|
"ext-posix": "*",
|
||||||
"zircote/swagger-php": "^4.2"
|
"ext-openssl": "*"
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
"optimize-autoloader": true,
|
"optimize-autoloader": true,
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
25
phpunit.xml
25
phpunit.xml
|
@ -1,27 +1,8 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
<phpunit bootstrap="vendor/autoload.php">
|
||||||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
|
|
||||||
bootstrap="vendor/autoload.php"
|
|
||||||
cacheResultFile=".phpunit.cache/test-results"
|
|
||||||
executionOrder="depends,defects"
|
|
||||||
forceCoversAnnotation="false"
|
|
||||||
beStrictAboutCoversAnnotation="true"
|
|
||||||
beStrictAboutOutputDuringTests="true"
|
|
||||||
beStrictAboutTodoAnnotatedTests="true"
|
|
||||||
convertDeprecationsToExceptions="true"
|
|
||||||
failOnRisky="true"
|
|
||||||
failOnWarning="true"
|
|
||||||
verbose="true">
|
|
||||||
<testsuites>
|
<testsuites>
|
||||||
<testsuite name="default">
|
<testsuite name="bindAPI Test Suite">
|
||||||
<directory>tests</directory>
|
<directory suffix=".php">./tests/</directory>
|
||||||
</testsuite>
|
</testsuite>
|
||||||
</testsuites>
|
</testsuites>
|
||||||
|
|
||||||
<coverage cacheDirectory=".phpunit.cache/code-coverage"
|
|
||||||
processUncoveredFiles="true">
|
|
||||||
<include>
|
|
||||||
<directory suffix=".php">src</directory>
|
|
||||||
</include>
|
|
||||||
</coverage>
|
|
||||||
</phpunit>
|
</phpunit>
|
|
@ -11,12 +11,13 @@ use PDOException;
|
||||||
* @covers \App\Controller\DatabaseConnection
|
* @covers \App\Controller\DatabaseConnection
|
||||||
* @covers \App\Controller\ConfigController
|
* @covers \App\Controller\ConfigController
|
||||||
*/
|
*/
|
||||||
class DatabaseConnectionTest extends BindApiControllerTest
|
class DatabaseConnectionTest extends BindApiTestController
|
||||||
{
|
{
|
||||||
private PDO $dbConnection;
|
private PDO $dbConnection;
|
||||||
|
|
||||||
public function testGetConnection()
|
public function testGetConnection()
|
||||||
{
|
{
|
||||||
|
|
||||||
$configController = new ConfigController(test: true);
|
$configController = new ConfigController(test: true);
|
||||||
|
|
||||||
$dbHost = $configController->getConfig(configKey: 'dbHost');
|
$dbHost = $configController->getConfig(configKey: 'dbHost');
|
||||||
|
|
|
@ -7,7 +7,7 @@ use PHPUnit\Framework\TestCase;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
class NameserverControllerTest extends BindApiControllerTest
|
class NameserverControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
public function setUp(): void
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
|
@ -23,6 +23,6 @@ class NameserverControllerTest extends BindApiControllerTest
|
||||||
|
|
||||||
public function testUpdate()
|
public function testUpdate()
|
||||||
{
|
{
|
||||||
self::assertEquals(expected: true, actual: true);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,23 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace Unit\Controller;
|
|
||||||
|
|
||||||
use PHPUnit\Framework\TestCase;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
class RequestControllerTest extends BindApiControllerTest
|
|
||||||
{
|
|
||||||
|
|
||||||
public function setUp(): void
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public function tearDown(): void
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
Loading…
Reference in New Issue