Skip to content

Commit

Permalink
Merge pull request #154 from ergebnis/dependabot/composer/ergebnis/te…
Browse files Browse the repository at this point in the history
…st-util-1.0.0
  • Loading branch information
dependabot-preview[bot] authored Mar 17, 2020
2 parents d794283 + cf5efc8 commit c31e6f7
Show file tree
Hide file tree
Showing 9 changed files with 129 additions and 74 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/integrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ jobs:
key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.lock') }}"
restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-"

- name: "Set COMPOSER_ROOT_VERSION environment variable"
uses: "docker://ergebnis/composer-root-version-action:0.1.3"

- name: "Install lowest dependencies from composer.json"
if: "matrix.dependencies == 'lowest'"
run: "composer update --no-interaction --no-progress --no-suggest --prefer-lowest"
Expand Down Expand Up @@ -122,6 +125,9 @@ jobs:
key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.lock') }}"
restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-"

- name: "Set COMPOSER_ROOT_VERSION environment variable"
uses: "docker://ergebnis/composer-root-version-action:0.1.3"

- name: "Install lowest dependencies from composer.json"
if: "matrix.dependencies == 'lowest'"
run: "composer update --no-interaction --no-progress --no-suggest --prefer-lowest"
Expand Down Expand Up @@ -172,6 +178,9 @@ jobs:
key: "${{ matrix.php-version }}-composer-locked-${{ hashFiles('**/composer.lock') }}"
restore-keys: "${{ matrix.php-version }}-composer-locked-"

- name: "Set COMPOSER_ROOT_VERSION environment variable"
uses: "docker://ergebnis/composer-root-version-action:0.1.3"

- name: "Install lowest dependencies from composer.json"
if: "matrix.dependencies == 'lowest'"
run: "composer update --no-interaction --no-progress --no-suggest --prefer-lowest"
Expand Down Expand Up @@ -236,6 +245,9 @@ jobs:
key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.lock') }}"
restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-"

- name: "Set COMPOSER_ROOT_VERSION environment variable"
uses: "docker://ergebnis/composer-root-version-action:0.1.3"

- name: "Install lowest dependencies from composer.json"
if: "matrix.dependencies == 'lowest'"
run: "composer update --no-interaction --no-progress --no-suggest --prefer-lowest"
Expand Down Expand Up @@ -292,6 +304,9 @@ jobs:
key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.lock') }}"
restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-"

- name: "Set COMPOSER_ROOT_VERSION environment variable"
uses: "docker://ergebnis/composer-root-version-action:0.1.3"

- name: "Install lowest dependencies from composer.json"
if: "matrix.dependencies == 'lowest'"
run: "composer update --no-interaction --no-progress --no-suggest --prefer-lowest"
Expand Down Expand Up @@ -350,6 +365,9 @@ jobs:
key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.lock') }}"
restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-"

- name: "Set COMPOSER_ROOT_VERSION environment variable"
uses: "docker://ergebnis/composer-root-version-action:0.1.3"

- name: "Install lowest dependencies from composer.json"
if: "matrix.dependencies == 'lowest'"
run: "composer update --no-interaction --no-progress --no-suggest --prefer-lowest"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/renew.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ jobs:
key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.lock') }}"
restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-"

- name: "Set COMPOSER_ROOT_VERSION environment variable"
uses: "docker://ergebnis/composer-root-version-action:0.1.3"

- name: "Install lowest dependencies from composer.json"
if: "matrix.dependencies == 'lowest'"
run: "composer update --no-interaction --no-progress --no-suggest --prefer-lowest"
Expand Down
7 changes: 6 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"ergebnis/license": "~0.1.0",
"ergebnis/php-cs-fixer-config": "^2.1.0",
"ergebnis/phpstan-rules": "~0.14.4",
"ergebnis/test-util": "~0.7.0",
"ergebnis/test-util": "~1.0.0",
"infection/infection": "~0.13.6",
"phpbench/phpbench": "~0.16.10",
"phpstan/extension-installer": "^1.0.3",
Expand All @@ -46,6 +46,11 @@
"preferred-install": "dist",
"sort-packages": true
},
"extra": {
"branch-alias": {
"dev-master": "1.0-dev"
}
},
"autoload": {
"psr-4": {
"Ergebnis\\Classy\\": "src/"
Expand Down
149 changes: 89 additions & 60 deletions composer.lock

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

4 changes: 2 additions & 2 deletions test/AutoReview/SrcCodeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Ergebnis\Classy\Test\AutoReview;

use Localheinz\Test\Util\Helper;
use Ergebnis\Test\Util\Helper;
use PHPUnit\Framework;

/**
Expand All @@ -27,7 +27,7 @@ final class SrcCodeTest extends Framework\TestCase

public function testSrcClassesHaveTests(): void
{
$this->assertClassesHaveTests(
self::assertClassesHaveTests(
__DIR__ . '/../../src',
'Ergebnis\\Classy\\',
'Ergebnis\\Classy\\Test\\Unit\\'
Expand Down
10 changes: 5 additions & 5 deletions test/Unit/ConstructTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
namespace Ergebnis\Classy\Test\Unit;

use Ergebnis\Classy\Construct;
use Localheinz\Test\Util\Helper;
use Ergebnis\Test\Util\Helper;
use PHPUnit\Framework;

/**
Expand All @@ -28,7 +28,7 @@ final class ConstructTest extends Framework\TestCase

public function testFromNameReturnsConstruct(): void
{
$name = $this->faker()->word;
$name = self::faker()->word;

$construct = Construct::fromName($name);

Expand All @@ -38,15 +38,15 @@ public function testFromNameReturnsConstruct(): void

public function testDefaults(): void
{
$construct = Construct::fromName($this->faker()->word);
$construct = Construct::fromName(self::faker()->word);

self::assertIsArray($construct->fileNames());
self::assertCount(0, $construct->fileNames());
}

public function testToStringReturnsName(): void
{
$name = $this->faker()->word;
$name = self::faker()->word;

$construct = Construct::fromName($name);

Expand All @@ -55,7 +55,7 @@ public function testToStringReturnsName(): void

public function testDefinedInClonesInstanceAndAddsFileNames(): void
{
$faker = $this->faker();
$faker = self::faker();

$name = $faker->word;

Expand Down
4 changes: 2 additions & 2 deletions test/Unit/Exception/DirectoryDoesNotExistTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

use Ergebnis\Classy\Exception\DirectoryDoesNotExist;
use Ergebnis\Classy\Exception\ExceptionInterface;
use Localheinz\Test\Util\Helper;
use Ergebnis\Test\Util\Helper;
use PHPUnit\Framework;

/**
Expand All @@ -29,7 +29,7 @@ final class DirectoryDoesNotExistTest extends Framework\TestCase

public function testFromDirectoryReturnsException(): void
{
$directory = $this->faker()->sentence;
$directory = self::faker()->sentence;

$exception = DirectoryDoesNotExist::fromDirectory($directory);

Expand Down
Loading

0 comments on commit c31e6f7

Please sign in to comment.