Skip to content

Commit

Permalink
add phptan to allow plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
sidz committed Oct 9, 2023
1 parent 97f04b4 commit f2966b0
Show file tree
Hide file tree
Showing 25 changed files with 16 additions and 4,050 deletions.
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
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
7 changes: 6 additions & 1 deletion tests/e2e/Codeception_Basic/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
},
"require": {
"infection/infection": "0.25.0",
"infection/codeception-adapter": "dev-master"
"infection/codeception-adapter": "dev-non-default-codeception-config-path"
},
"config": {
"allow-plugins": {
"infection/extension-installer": true
}
}
}
2 changes: 1 addition & 1 deletion tests/e2e/Codeception_Basic/tests/unit/SourceClassTest.php
Original file line number Diff line number Diff line change
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));
}
}
20 changes: 0 additions & 20 deletions tests/e2e/Codeception_Custom_Config_Path/composer.json

This file was deleted.

9 changes: 0 additions & 9 deletions tests/e2e/Codeception_Custom_Config_Path/expected-output.txt

This file was deleted.

11 changes: 0 additions & 11 deletions tests/e2e/Codeception_Custom_Config_Path/infection.json

This file was deleted.

43 changes: 0 additions & 43 deletions tests/e2e/Codeception_Custom_Config_Path/run_tests.bash

This file was deleted.

This file was deleted.

13 changes: 0 additions & 13 deletions tests/e2e/Codeception_Custom_Config_Path/src/SourceClass.php

This file was deleted.

Empty file.
Empty file.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit f2966b0

Please sign in to comment.