Skip to content

Commit

Permalink
Fix imports. Phake uses namespaces since v4
Browse files Browse the repository at this point in the history
  • Loading branch information
pH-7 committed Feb 20, 2022
1 parent 81d7012 commit e01baf1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ jobs:
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
restore-keys: ${{ runner.os }}-composer-
- name: Install Composer Dependencies
run: composer install --prefer-dist --no-interaction --no-progress --no-suggest

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"phake/phake": "^4.1"
"phake/phake": "^4.2"
},
"autoload": {
"psr-4": {
Expand Down
8 changes: 4 additions & 4 deletions tests/Command/Markdown/GeneratorCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@

use PH7\PhpReadmeGeneratorFile\Command\Markdown\GeneratorCommand;
use Phake;
use Phake_IMock;
use Phake\IMock;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Style\SymfonyStyle;

class GeneratorCommandTest extends TestCase
{
private OutputInterface|Phake_IMock $input;
private OutputInterface|IMock $input;

private OutputInterface|Phake_IMock $output;
private OutputInterface|IMock $output;

private OutputInterface|Phake_IMock $io;
private OutputInterface|IMock $io;

private GeneratorCommand $generator;

Expand Down

0 comments on commit e01baf1

Please sign in to comment.