Skip to content

Commit 33f86ed

Browse files
committed
preparing 1.0.0
1 parent f0d91e5 commit 33f86ed

File tree

8 files changed

+45
-31
lines changed

8 files changed

+45
-31
lines changed

composer.json

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,18 @@
22
"name": "esi/phpunit-coverage-check",
33
"description": "Check the code coverage using the clover report of PHPUnit.",
44
"license": "MIT",
5+
"type": "library",
56
"keywords": [
6-
"Testing",
7-
"PHP",
7+
"test",
8+
"testing",
9+
"testing-tools",
10+
"coverage",
11+
"coverage-report",
812
"phpunit",
9-
"Unittest",
10-
"CI",
11-
"Code coverage"
13+
"unit-testing",
14+
"code-coverage",
15+
"code-coverage-checker"
1216
],
13-
"type": "library",
1417
"authors": [
1518
{
1619
"name": "Eric Sizemore",
@@ -31,16 +34,16 @@
3134
},
3235
"require": {
3336
"php": "^8.1 <8.5",
34-
"symfony/console": "^6.1 || ^7.0",
35-
"ext-simplexml": "*"
37+
"ext-simplexml": "*",
38+
"symfony/console": "^6.1 || ^7.0"
3639
},
3740
"require-dev": {
3841
"friendsofphp/php-cs-fixer": "dev-master",
3942
"phpstan/phpstan": "^1.11",
4043
"phpstan/phpstan-phpunit": "^1.4",
4144
"phpstan/phpstan-strict-rules": "^1.6",
42-
"phpunit/phpunit": "^10.0",
43-
"phpstan/phpstan-symfony": "^1.3.0"
45+
"phpstan/phpstan-symfony": "^1.3.0",
46+
"phpunit/phpunit": "^10.0"
4447
},
4548
"minimum-stability": "dev",
4649
"prefer-stable": true,
@@ -54,19 +57,19 @@
5457
"Esi\\CoverageCheck\\Tests\\": "tests/src"
5558
}
5659
},
57-
"extra": {
58-
"branch-alias": {
59-
"dev-master": "1.0-dev"
60-
}
61-
},
60+
"bin": [
61+
"coverage-check"
62+
],
6263
"config": {
6364
"platform": {
6465
"php": "8.1.0"
6566
}
6667
},
67-
"bin": [
68-
"coverage-check"
69-
],
68+
"extra": {
69+
"branch-alias": {
70+
"dev-master": "1.0-dev"
71+
}
72+
},
7073
"scripts": {
7174
"phpcs-fix": "vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php",
7275
"phpcs-nofix": "vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php --dry-run --diff",

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coverage-check

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ declare(strict_types=1);
99
* (c) Eric Sizemore <admin@secondversion.com>
1010
* (c) Richard Regeer <rich2309@gmail.com>
1111
*
12-
* For the full copyright and license information, please view
13-
* the LICENSE file that was distributed with this source code.
12+
* This source file is subject to the MIT license. For the full copyright,
13+
* license information, and credits/acknowledgements, please view the LICENSE
14+
* and README files that were distributed with this source code.
1415
*/
1516
$composerAutoloaders = [
1617
__DIR__ . '/vendor/autoload.php', // Try the vendor directory first

src/Command/CoverageCheckCommand.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
* (c) Eric Sizemore <admin@secondversion.com>
99
* (c) Richard Regeer <rich2309@gmail.com>
1010
*
11-
* For the full copyright and license information, please view
12-
* the LICENSE file that was distributed with this source code.
11+
* This source file is subject to the MIT license. For the full copyright,
12+
* license information, and credits/acknowledgements, please view the LICENSE
13+
* and README files that were distributed with this source code.
1314
*/
1415

1516
namespace Esi\CoverageCheck\Command;

src/CoverageCheck.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
* (c) Eric Sizemore <admin@secondversion.com>
99
* (c) Richard Regeer <rich2309@gmail.com>
1010
*
11-
* For the full copyright and license information, please view
12-
* the LICENSE file that was distributed with this source code.
11+
* This source file is subject to the MIT license. For the full copyright,
12+
* license information, and credits/acknowledgements, please view the LICENSE
13+
* and README files that were distributed with this source code.
1314
*/
1415

1516
namespace Esi\CoverageCheck;
@@ -193,6 +194,7 @@ public function setThreshold(int $threshold): CoverageCheck
193194
* Loads the clover xml data and runs XML Xpath query with self::XPATH_METRICS.
194195
*
195196
* @see https://www.php.net/SimpleXMLElement
197+
* @internal
196198
*
197199
* @return array<SimpleXMLElement>
198200
*

tests/console-application.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,13 @@
88
* (c) Eric Sizemore <admin@secondversion.com>
99
* (c) Richard Regeer <rich2309@gmail.com>
1010
*
11-
* For the full copyright and license information, please view
12-
* the LICENSE file that was distributed with this source code.
11+
* This source file is subject to the MIT license. For the full copyright,
12+
* license information, and credits/acknowledgements, please view the LICENSE
13+
* and README files that were distributed with this source code.
14+
*/
15+
16+
/**
17+
* @internal
1318
*/
1419
require __DIR__ . '/../vendor/autoload.php';
1520

tests/src/Command/CoverageCheckCommandTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
* (c) Eric Sizemore <admin@secondversion.com>
99
* (c) Richard Regeer <rich2309@gmail.com>
1010
*
11-
* For the full copyright and license information, please view
12-
* the LICENSE file that was distributed with this source code.
11+
* This source file is subject to the MIT license. For the full copyright,
12+
* license information, and credits/acknowledgements, please view the LICENSE
13+
* and README files that were distributed with this source code.
1314
*/
1415

1516
namespace Esi\CoverageCheck\Tests\Command;

tests/src/CoverageCheckTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
* (c) Eric Sizemore <admin@secondversion.com>
99
* (c) Richard Regeer <rich2309@gmail.com>
1010
*
11-
* For the full copyright and license information, please view
12-
* the LICENSE file that was distributed with this source code.
11+
* This source file is subject to the MIT license. For the full copyright,
12+
* license information, and credits/acknowledgements, please view the LICENSE
13+
* and README files that were distributed with this source code.
1314
*/
1415

1516
namespace Esi\CoverageCheck\Tests;

0 commit comments

Comments
 (0)