Browse Source

Reorganize tests

master
J. King 4 years ago
parent
commit
4c1aad6c1b
  1. 2
      tests/cases/Util/Date/DateTest.php
  2. 0
      tests/cases/Util/Date/test-asctime.yaml
  3. 0
      tests/cases/Util/Date/test-rfc3339.yaml
  4. 0
      tests/cases/Util/Date/test-rfc822.yaml
  5. 0
      tests/cases/Util/Date/test-rfc850.yaml
  6. 2
      tests/cases/Util/Url/Psr7TestCase.php
  7. 5
      tests/cases/Util/Url/UrlTest.php
  8. 3
      tests/phpunit.dist.xml

2
tests/cases/Date/DateTest.php → tests/cases/Util/Date/DateTest.php

@ -4,7 +4,7 @@
* See LICENSE and AUTHORS files for details */
declare(strict_types=1);
namespace MensBeam\Lax\TestCase\Date;
namespace MensBeam\Lax\TestCase\Util\Date;
use MensBeam\Lax\Date;
use Symfony\Component\Yaml\Yaml;

0
tests/cases/Date/test-asctime.yaml → tests/cases/Util/Date/test-asctime.yaml

0
tests/cases/Date/test-rfc3339.yaml → tests/cases/Util/Date/test-rfc3339.yaml

0
tests/cases/Date/test-rfc822.yaml → tests/cases/Util/Date/test-rfc822.yaml

0
tests/cases/Date/test-rfc850.yaml → tests/cases/Util/Date/test-rfc850.yaml

2
tests/cases/Util/Url/AbstractUriTestCase.php → tests/cases/Util/Url/Psr7TestCase.php

@ -6,7 +6,7 @@ use Psr\Http\Message\UriInterface;
use PHPUnit\Framework\TestCase;
use InvalidArgumentException;
abstract class AbstractUriTestCase extends TestCase {
abstract class Psr7TestCase extends TestCase {
/**
* @var UriInterface
*/

5
tests/cases/Util/UrlTest.php → tests/cases/Util/Url/UrlTest.php

@ -4,13 +4,12 @@
* See LICENSE and AUTHORS files for details */
declare(strict_types=1);
namespace MensBeam\Lax\TestCase\Util;
namespace MensBeam\Lax\TestCase\Util\Url;
use MensBeam\Lax\Url;
use MensBeam\Lax\TestCase\Util\Url\AbstractUriTestCase;
/** @covers MensBeam\Lax\Url<extended> */
class UrlTest extends AbstractUriTestCase {
class UrlTest extends Psr7TestCase {
protected function createUri($uri = '') {
return new Url($uri);
}

3
tests/phpunit.dist.xml

@ -22,9 +22,6 @@
<testsuite name="Util">
<directory>cases/Util</directory>
</testsuite>
<testsuite name="Date">
<directory>cases/Date</directory>
</testsuite>
<testsuite name="JSON">
<directory>cases/JSON</directory>
</testsuite>

Loading…
Cancel
Save