Skip to content

Commit

Permalink
Merge pull request #21 from infection/non-default-codeception-config-…
Browse files Browse the repository at this point in the history
…path

Fix e2e tests, allow phpstan plugin
  • Loading branch information
maks-rafalko committed Oct 9, 2023
2 parents 0781f03 + 05f4168 commit e9be902
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
5 changes: 4 additions & 1 deletion composer.json
Expand Up @@ -23,7 +23,10 @@
]
},
"config": {
"sort-packages": true
"sort-packages": true,
"allow-plugins": {
"phpstan/extension-installer": true
}
},
"require": {
"php": "^7.4 || ^8.0",
Expand Down
5 changes: 5 additions & 0 deletions tests/e2e/Codeception_Basic/composer.json
Expand Up @@ -16,5 +16,10 @@
"require": {
"infection/infection": "0.25.0",
"infection/codeception-adapter": "dev-master"
},
"config": {
"allow-plugins": {
"infection/extension-installer": true
}
}
}
2 changes: 1 addition & 1 deletion tests/e2e/Codeception_Basic/tests/unit/SourceClassTest.php
Expand Up @@ -31,6 +31,6 @@ public function test_it_can_add_small_numbers()
{
$source = new SourceClass();

$this->assertSame(0.3, $source->add(0.1, 0.2));
$this->assertSame(0.3, round($source->add(0.1, 0.2), 1));
}
}
5 changes: 5 additions & 0 deletions tests/e2e/Codeception_With_Suite_Overridings/composer.json
Expand Up @@ -14,5 +14,10 @@
"psr-4": {
"Codeception_With_Suite_Overridings\\": "tests/integration"
}
},
"config": {
"allow-plugins": {
"infection/extension-installer": true
}
}
}

0 comments on commit e9be902

Please sign in to comment.