mirror of
https://github.com/danog/psalm-plugin-laravel.git
synced 2024-11-30 04:39:01 +01:00
fixes codeception to actually work
This commit is contained in:
parent
ce996c6dd6
commit
3ddc65b2ae
@ -13,6 +13,7 @@ use Composer\Semver\Semver;
|
|||||||
use Composer\Semver\VersionParser;
|
use Composer\Semver\VersionParser;
|
||||||
use PackageVersions\Versions;
|
use PackageVersions\Versions;
|
||||||
use PHPUnit\Framework\Assert;
|
use PHPUnit\Framework\Assert;
|
||||||
|
use Behat\Gherkin\Node\PyStringNode;
|
||||||
use Behat\Gherkin\Node\TableNode;
|
use Behat\Gherkin\Node\TableNode;
|
||||||
use OutOfBoundsException;
|
use OutOfBoundsException;
|
||||||
use PHPUnit\Framework\SkippedTestError;
|
use PHPUnit\Framework\SkippedTestError;
|
||||||
@ -238,9 +239,9 @@ class Module extends BaseModule
|
|||||||
/**
|
/**
|
||||||
* @Given I have the following code preamble :code
|
* @Given I have the following code preamble :code
|
||||||
*/
|
*/
|
||||||
public function haveTheFollowingCodePreamble(string $code): void
|
public function haveTheFollowingCodePreamble(PyStringNode $code): void
|
||||||
{
|
{
|
||||||
$this->preamble = $code;
|
$this->preamble = $code->getRaw();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -313,20 +314,20 @@ class Module extends BaseModule
|
|||||||
/**
|
/**
|
||||||
* @Given I have the following config :config
|
* @Given I have the following config :config
|
||||||
*/
|
*/
|
||||||
public function haveTheFollowingConfig(string $config): void
|
public function haveTheFollowingConfig(PyStringNode $config): void
|
||||||
{
|
{
|
||||||
$this->psalmConfig = $config;
|
$this->psalmConfig = $config->getRaw();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Given I have the following code :code
|
* @Given I have the following code :code
|
||||||
*/
|
*/
|
||||||
public function haveTheFollowingCode(string $code): void
|
public function haveTheFollowingCode(PyStringNode $code): void
|
||||||
{
|
{
|
||||||
$file = sprintf(
|
$file = sprintf(
|
||||||
'%s/%s.php',
|
'%s/%s.php',
|
||||||
rtrim($this->config['default_dir'], '/'),
|
rtrim($this->config['default_dir'], '/'),
|
||||||
sha1($this->preamble . $code)
|
sha1($this->preamble . $code->getRaw())
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->fs()->writeToFile(
|
$this->fs()->writeToFile(
|
||||||
|
@ -132,7 +132,7 @@ Feature: Eloquent Builder types
|
|||||||
When I run Psalm
|
When I run Psalm
|
||||||
Then I see no errors
|
Then I see no errors
|
||||||
|
|
||||||
Scenario:
|
Scenario: Unknown Scenario
|
||||||
Given I have the following code preamble
|
Given I have the following code preamble
|
||||||
"""
|
"""
|
||||||
<?php declare(strict_types=1);
|
<?php declare(strict_types=1);
|
||||||
|
@ -16,7 +16,7 @@ Feature: Eloquent Collection types
|
|||||||
</psalm>
|
</psalm>
|
||||||
"""
|
"""
|
||||||
|
|
||||||
Scenario:
|
Scenario: Unknown Scenario
|
||||||
Given I have the following code
|
Given I have the following code
|
||||||
"""
|
"""
|
||||||
<?php declare(strict_types=1);
|
<?php declare(strict_types=1);
|
||||||
|
@ -17,7 +17,7 @@ Feature: ExceptionHandler
|
|||||||
</psalm>
|
</psalm>
|
||||||
"""
|
"""
|
||||||
|
|
||||||
Scenario:
|
Scenario: Unknown Scenario
|
||||||
Given I have the following code
|
Given I have the following code
|
||||||
"""
|
"""
|
||||||
<?php
|
<?php
|
||||||
|
@ -16,7 +16,7 @@ Feature: redirect()
|
|||||||
</psalm>
|
</psalm>
|
||||||
"""
|
"""
|
||||||
|
|
||||||
Scenario:
|
Scenario: Unknown Scenario
|
||||||
Given I have the following code
|
Given I have the following code
|
||||||
"""
|
"""
|
||||||
<?php
|
<?php
|
||||||
@ -29,7 +29,7 @@ Feature: redirect()
|
|||||||
When I run Psalm
|
When I run Psalm
|
||||||
Then I see no errors
|
Then I see no errors
|
||||||
|
|
||||||
Scenario:
|
Scenario: Unknown Scenario
|
||||||
Given I have the following code
|
Given I have the following code
|
||||||
"""
|
"""
|
||||||
<?php
|
<?php
|
||||||
|
@ -16,7 +16,7 @@ Feature: url()
|
|||||||
</psalm>
|
</psalm>
|
||||||
"""
|
"""
|
||||||
|
|
||||||
Scenario:
|
Scenario: Unknown Scenario
|
||||||
Given I have the following code
|
Given I have the following code
|
||||||
"""
|
"""
|
||||||
<?php
|
<?php
|
||||||
@ -29,7 +29,7 @@ Feature: url()
|
|||||||
When I run Psalm
|
When I run Psalm
|
||||||
Then I see no errors
|
Then I see no errors
|
||||||
|
|
||||||
Scenario:
|
Scenario: Unknown Scenario
|
||||||
Given I have the following code
|
Given I have the following code
|
||||||
"""
|
"""
|
||||||
<?php
|
<?php
|
||||||
|
Loading…
Reference in New Issue
Block a user