Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build(deps-dev): Bump ergebnis/test-util from 0.7.0 to 1.0.0 #154

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix: Use ergebnis/test-util instead of localheinz/test-util
  • Loading branch information
localheinz committed Mar 17, 2020
commit cf5efc8b8509930b84af954fd78661c52e27d2ee
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
2 changes: 1 addition & 1 deletion test/Unit/Exception/MultipleDefinitionsFoundTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Ergebnis\Classy\Construct;
use Ergebnis\Classy\Exception\ExceptionInterface;
use Ergebnis\Classy\Exception\MultipleDefinitionsFound;
use Localheinz\Test\Util\Helper;
use Ergebnis\Test\Util\Helper;
use PHPUnit\Framework;

/**
Expand Down
6 changes: 3 additions & 3 deletions test/Unit/Exception/ParseErrorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

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

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

public function testFromParseErrorReturnsException(): void
{
$parseError = new \ParseError($this->faker()->sentence());
$parseError = new \ParseError(self::faker()->sentence());

$exception = ParseError::fromParseError($parseError);

Expand All @@ -44,7 +44,7 @@ public function testFromParseErrorReturnsException(): void
public function testFromFileNameAndParseErrorReturnsException(): void
{
$fileName = __FILE__;
$parseError = new \ParseError($this->faker()->sentence());
$parseError = new \ParseError(self::faker()->sentence());

$exception = ParseError::fromFileNameAndParseError(
$fileName,
Expand Down