Skip to content

Commit 2fee4bd

Browse files
authored
Merge pull request #9 from aternosorg/move-tests
Move tests to `tests/Integration/`
2 parents 65cb057 + 6808636 commit 2fee4bd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+81
-103
lines changed

composer.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,13 @@
2929
"phpunit/phpunit": "^12.4"
3030
},
3131
"autoload": {
32-
"psr-4": { "Aternos\\HangarApi\\" : "lib/" }
32+
"psr-4": {
33+
"Aternos\\HangarApi\\": "lib/"
34+
}
3335
},
3436
"autoload-dev": {
35-
"psr-4": { "Aternos\\HangarApi\\Test\\" : "test/" }
37+
"psr-4": {
38+
"Aternos\\HangarApi\\Test\\": "tests/"
39+
}
3640
}
3741
}

phpunit.xml.dist

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,19 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="./vendor/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
3-
<coverage processUncoveredFiles="true">
4-
<include>
5-
<!--
6-
<directory suffix=".php">./lib/Api</directory>
7-
<directory suffix=".php">./lib/Model</directory>
8-
-->
9-
<directory suffix=".php">./lib/Client</directory>
10-
</include>
11-
</coverage>
12-
<testsuites>
13-
<testsuite name="tests">
14-
<!--
15-
<directory>./test/Api</directory>
16-
<directory>./test/Model</directory>
17-
-->
18-
<directory>./test/Client</directory>
19-
</testsuite>
20-
</testsuites>
21-
<php>
22-
<ini name="error_reporting" value="E_ALL"/>
23-
</php>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/12.4/phpunit.xsd"
4+
bootstrap="./vendor/autoload.php"
5+
colors="true">
6+
<testsuites>
7+
<testsuite name="integration">
8+
<directory>tests/Integration/Client</directory>
9+
</testsuite>
10+
</testsuites>
11+
<source>
12+
<include>
13+
<directory>lib</directory>
14+
</include>
15+
</source>
16+
<php>
17+
<ini name="error_reporting" value="E_ALL"/>
18+
</php>
2419
</phpunit>
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,8 @@
2525
* Please update the test case below to test the endpoint.
2626
*/
2727

28-
namespace Aternos\HangarApi\Test\Api;
28+
namespace Aternos\HangarApi\Test\Integration\Api;
2929

30-
use \Aternos\HangarApi\Configuration;
31-
use \Aternos\HangarApi\ApiException;
32-
use \Aternos\HangarApi\ObjectSerializer;
3330
use PHPUnit\Framework\TestCase;
3431

3532
/**

test/Api/AuthenticationApiTest.php renamed to tests/Integration/Api/AuthenticationApiTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,8 @@
2525
* Please update the test case below to test the endpoint.
2626
*/
2727

28-
namespace Aternos\HangarApi\Test\Api;
28+
namespace Aternos\HangarApi\Test\Integration\Api;
2929

30-
use \Aternos\HangarApi\Configuration;
31-
use \Aternos\HangarApi\ApiException;
32-
use \Aternos\HangarApi\ObjectSerializer;
3330
use PHPUnit\Framework\TestCase;
3431

3532
/**
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,8 @@
2525
* Please update the test case below to test the endpoint.
2626
*/
2727

28-
namespace Aternos\HangarApi\Test\Api;
28+
namespace Aternos\HangarApi\Test\Integration\Api;
2929

30-
use \Aternos\HangarApi\Configuration;
31-
use \Aternos\HangarApi\ApiException;
32-
use \Aternos\HangarApi\ObjectSerializer;
3330
use PHPUnit\Framework\TestCase;
3431

3532
/**

test/Api/PermissionsApiTest.php renamed to tests/Integration/Api/PermissionsApiTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,8 @@
2525
* Please update the test case below to test the endpoint.
2626
*/
2727

28-
namespace Aternos\HangarApi\Test\Api;
28+
namespace Aternos\HangarApi\Test\Integration\Api;
2929

30-
use \Aternos\HangarApi\Configuration;
31-
use \Aternos\HangarApi\ApiException;
32-
use \Aternos\HangarApi\ObjectSerializer;
3330
use PHPUnit\Framework\TestCase;
3431

3532
/**
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,8 @@
2525
* Please update the test case below to test the endpoint.
2626
*/
2727

28-
namespace Aternos\HangarApi\Test\Api;
28+
namespace Aternos\HangarApi\Test\Integration\Api;
2929

30-
use \Aternos\HangarApi\Configuration;
31-
use \Aternos\HangarApi\ApiException;
32-
use \Aternos\HangarApi\ObjectSerializer;
3330
use PHPUnit\Framework\TestCase;
3431

3532
/**
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,8 @@
2525
* Please update the test case below to test the endpoint.
2626
*/
2727

28-
namespace Aternos\HangarApi\Test\Api;
28+
namespace Aternos\HangarApi\Test\Integration\Api;
2929

30-
use \Aternos\HangarApi\Configuration;
31-
use \Aternos\HangarApi\ApiException;
32-
use \Aternos\HangarApi\ObjectSerializer;
3330
use PHPUnit\Framework\TestCase;
3431

3532
/**
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,8 @@
2525
* Please update the test case below to test the endpoint.
2626
*/
2727

28-
namespace Aternos\HangarApi\Test\Api;
28+
namespace Aternos\HangarApi\Test\Integration\Api;
2929

30-
use \Aternos\HangarApi\Configuration;
31-
use \Aternos\HangarApi\ApiException;
32-
use \Aternos\HangarApi\ObjectSerializer;
3330
use PHPUnit\Framework\TestCase;
3431

3532
/**
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Aternos\HangarApi\Test\Client;
3+
namespace Aternos\HangarApi\Test\Integration\Client;
44

55
use Aternos\HangarApi\ApiException;
66
use Aternos\HangarApi\Client\HangarAPIClient;

0 commit comments

Comments
 (0)