Skip to content

Commit

Permalink
preparing release
Browse files Browse the repository at this point in the history
  • Loading branch information
ericsizemore committed Apr 7, 2024
1 parent 040f1c9 commit 20c186f
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 27 deletions.
3 changes: 3 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ filter:
excluded_paths:
- 'tests/*'
- 'bin/*'
- 'dist/*'
- 'stubs/*'
- 'data/*'

checks:
php: true
Expand Down
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## [Unreleased]
## [2.0.0] - 2024-04-07

Mostly a 'restructuring' release, to set the foundation going forward. See UPGRADING.md for upgrade instructions/overview.

Expand Down Expand Up @@ -95,7 +95,7 @@ Initial fork from [elephox-dev/mimey](https://github.com/elephox-dev/mimey)
* So essentially, this is not a new feature/update release. More of just bringing it inline with my preferences.


[unreleased]: https://github.com/ericsizemore/mimey/tree/develop
[2.0.0]: https://github.com/ericsizemore/mimey/releases/tag/v2.0.0
[1.2.0]: https://github.com/ericsizemore/mimey/releases/tag/v1.2.0
[1.1.1]: https://github.com/ericsizemore/mimey/releases/tag/v1.1.1
[1.1.0]: https://github.com/ericsizemore/mimey/releases/tag/v1.1.0
Expand Down
16 changes: 8 additions & 8 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
backupGlobals="true"
executionOrder="depends,defects"
bootstrap="tests/bootstrap.php"
bootstrap="tests/bootstrap.php"
cacheDirectory="build/phpunit/cache"
displayDetailsOnTestsThatTriggerDeprecations="true"
displayDetailsOnTestsThatTriggerErrors="true"
Expand All @@ -20,15 +20,15 @@
<directory>tests</directory>
</testsuite>
</testsuites>
<source restrictDeprecations="true" restrictNotices="true" restrictWarnings="true">
<include>
<directory>src</directory>
</include>
</source>
<source restrictNotices="true" restrictWarnings="true" ignoreIndirectDeprecations="true">
<include>
<directory>src</directory>
</include>
</source>
<coverage cacheDirectory="build/phpunit/cache">
<report>
<clover outputFile="build/logs/clover.xml"/>
<html outputDirectory="build/logs/coverage" />
<html outputDirectory="build/logs/coverage"/>
</report>
</coverage>
</phpunit>
7 changes: 1 addition & 6 deletions tests/src/BuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,14 @@

namespace Esi\Mimey\Tests;

// Core classes
use Esi\Mimey\Mapping\Builder;
use Esi\Mimey\MimeTypes;

// PHPUnit
use JsonException;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\UsesClass;

// Exceptions
use PHPUnit\Framework\TestCase;
use RuntimeException;

// Functions & constants
use function file_get_contents;
use function file_put_contents;
use function json_decode;
Expand Down Expand Up @@ -103,6 +97,7 @@ public function testFromBuiltIn(): void
self::assertSame('mycustomjson', $mime3->getExtension('application/json'));
self::assertSame('application/mycustomjson', $mime3->getMimeType('json'));
}

/**
* Test with a new mapping builder that has no types defined.
*/
Expand Down
6 changes: 1 addition & 5 deletions tests/src/GeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,9 @@

namespace Esi\Mimey\Tests;

// Core classes
use Esi\Mimey\Mapping\Generator;

// Exceptions
use JsonException;
use PHPUnit\Framework\Attributes\CoversClass;

// PHPUnit
use PHPUnit\Framework\TestCase;
use ReflectionMethod;

Expand Down Expand Up @@ -201,6 +196,7 @@ public static function tryFromExtension(string \$extension): ?MimeType
$phpEnum
);
}

public function testSpaceIndent(): void
{
$spaceIndent = new ReflectionMethod(Generator::class, 'spaceIndent');
Expand Down
6 changes: 0 additions & 6 deletions tests/src/MimeTypesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,14 @@

namespace Esi\Mimey\Tests;

// Core classes
use Esi\Mimey\MimeTypes;
use Iterator;
use PHPUnit\Framework\Attributes\CoversClass;

// Exceptions
use PHPUnit\Framework\Attributes\DataProvider;

// PHPUnit
use PHPUnit\Framework\TestCase;
use ReflectionClass;
use RuntimeException;

// Functions
use function file_put_contents;
use function rename;
use function unlink;
Expand Down

0 comments on commit 20c186f

Please sign in to comment.