Skip to content

Commit

Permalink
Merge pull request #223 from ergebnis/feature/synchronize
Browse files Browse the repository at this point in the history
Enhancement: Synchronize with `ergebnis/php-package-template`
  • Loading branch information
localheinz authored Feb 11, 2023
2 parents dbf50a2 + 65860d8 commit 7cfc412
Show file tree
Hide file tree
Showing 10 changed files with 74 additions and 95 deletions.
1 change: 0 additions & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ For details, take a look at the following workflow configuration files:

- [`workflows/integrate.yaml`](workflows/integrate.yaml)
- [`workflows/merge.yaml`](workflows/merge.yaml)
- [`workflows/prune.yaml`](workflows/prune.yaml)
- [`workflows/release.yaml`](workflows/release.yaml)
- [`workflows/renew.yaml`](workflows/renew.yaml)
- [`workflows/triage.yaml`](workflows/triage.yaml)
Expand Down
4 changes: 0 additions & 4 deletions .github/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ labels:
color: "ee0701"
description: ""

- name: "stale"
color: "eeeeee"
description: ""

# https://docs.github.com/en/rest/reference/repos#update-a-repository

repository:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/integrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,6 @@ jobs:
coverage: "none"
extensions: "none, ctype, curl, dom, json, mbstring, pcntl, phar, posix, simplexml, tokenizer, xml, xmlwriter"
php-version: "${{ matrix.php-version }}"
tools: "phive"

- name: "Set up problem matchers for PHP"
run: "echo \"::add-matcher::${{ runner.tool_cache }}/php.json\""
Expand Down
35 changes: 0 additions & 35 deletions .github/workflows/prune.yaml

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

[![Integrate](https://github.com/ergebnis/phpunit-slow-test-detector/workflows/Integrate/badge.svg)](https://github.com/ergebnis/phpunit-slow-test-detector/actions)
[![Merge](https://github.com/ergebnis/phpunit-slow-test-detector/workflows/Merge/badge.svg)](https://github.com/ergebnis/phpunit-slow-test-detector/actions)
[![Prune](https://github.com/ergebnis/phpunit-slow-test-detector/workflows/Prune/badge.svg)](https://github.com/ergebnis/phpunit-slow-test-detector/actions)
[![Release](https://github.com/ergebnis/phpunit-slow-test-detector/workflows/Release/badge.svg)](https://github.com/ergebnis/phpunit-slow-test-detector/actions)
[![Renew](https://github.com/ergebnis/phpunit-slow-test-detector/workflows/Renew/badge.svg)](https://github.com/ergebnis/phpunit-slow-test-detector/actions)

Expand All @@ -11,6 +10,7 @@

[![Latest Stable Version](https://poser.pugx.org/ergebnis/phpunit-slow-test-detector/v/stable)](https://packagist.org/packages/ergebnis/phpunit-slow-test-detector)
[![Total Downloads](https://poser.pugx.org/ergebnis/phpunit-slow-test-detector/downloads)](https://packagist.org/packages/ergebnis/phpunit-slow-test-detector)
[![Monthly Downloads](http://poser.pugx.org/ergebnis/phpunit-slow-test-detector/d/monthly)](https://packagist.org/packages/ergebnis/phpunit-slow-test-detector)

Provides an extension for detecting slow tests in [`phpunit/phpunit`](https://github.com/sebastianbergmann/phpunit).

Expand Down Expand Up @@ -168,6 +168,6 @@ Please have a look at [`LICENSE.md`](LICENSE.md).

This project is inspired by [`johnkary/phpunit-speedtrap`](https://github.com/johnkary/phpunit-speedtrap).

## Curious what I am building?
## Curious what I am up to?

:mailbox_with_mail: [Subscribe to my list](https://localheinz.com/projects/), and I will occasionally send you an email to let you know what I am working on.
Follow me on [Twitter](https://twitter.com/intent/follow?screen_name=localheinz)!
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"ergebnis/license": "^2.1.0",
"ergebnis/php-cs-fixer-config": "^5.3.1",
"fakerphp/faker": "^1.21.0",
"psalm/plugin-phpunit": "~0.18.4",
"rector/rector": "~0.15.13",
"vimeo/psalm": "^5.6.0"
},
Expand Down
62 changes: 61 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 0 additions & 50 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,59 +46,9 @@
<code>NullReporter</code>
</UnusedClass>
</file>
<file src="test/EndToEnd/Default/SleeperTest.php">
<UnusedClass>
<code>SleeperTest</code>
</UnusedClass>
</file>
<file src="test/EndToEnd/MaximumCount/Five/SleeperTest.php">
<UnusedClass>
<code>SleeperTest</code>
</UnusedClass>
</file>
<file src="test/EndToEnd/MaximumDuration/Fifty/SleeperTest.php">
<UnusedClass>
<code>SleeperTest</code>
</UnusedClass>
</file>
<file src="test/Fixture/Sleeper.php">
<ArgumentTypeCoercion>
<code>$this-&gt;milliseconds * 1000</code>
</ArgumentTypeCoercion>
</file>
<file src="test/Unit/Comparator/DurationComparatorTest.php">
<UnusedClass>
<code>DurationComparatorTest</code>
</UnusedClass>
</file>
<file src="test/Unit/Console/ColorTest.php">
<UnusedClass>
<code>ColorTest</code>
</UnusedClass>
</file>
<file src="test/Unit/Exception/InvalidMaximumCountTest.php">
<UnusedClass>
<code>InvalidMaximumCountTest</code>
</UnusedClass>
</file>
<file src="test/Unit/Exception/InvalidMaximumDurationTest.php">
<UnusedClass>
<code>InvalidMaximumDurationTest</code>
</UnusedClass>
</file>
<file src="test/Unit/Formatter/DefaultDurationFormatterTest.php">
<UnusedClass>
<code>DefaultDurationFormatterTest</code>
</UnusedClass>
</file>
<file src="test/Unit/MaximumCountTest.php">
<UnusedClass>
<code>MaximumCountTest</code>
</UnusedClass>
</file>
<file src="test/Unit/MaximumDurationTest.php">
<UnusedClass>
<code>MaximumDurationTest</code>
</UnusedClass>
</file>
</files>
4 changes: 4 additions & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
resolveFromConfigFile="true"
strictBinaryOperands="true"
>
<plugins>
<pluginClass class="Psalm\PhpUnitPlugin\Plugin" />
</plugins>

<projectFiles>
<directory name="src/" />
<directory name="test/" />
Expand Down
5 changes: 5 additions & 0 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

use Rector\Config;
use Rector\Core;
use Rector\PHPUnit;

return static function (Config\RectorConfig $rectorConfig): void {
$rectorConfig->cacheDirectory(__DIR__ . '/.build/rector/');
Expand All @@ -25,4 +26,8 @@
]);

$rectorConfig->phpVersion(Core\ValueObject\PhpVersion::PHP_81);

$rectorConfig->sets([
PHPUnit\Set\PHPUnitSetList::PHPUNIT_90,
]);
};

0 comments on commit 7cfc412

Please sign in to comment.