Skip to content

Commit

Permalink
Added PHPStan and Nette Tester
Browse files Browse the repository at this point in the history
  • Loading branch information
juniwalk committed May 2, 2024
1 parent 2838957 commit b1bfd84
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
vendor
composer.lock
version.json
18 changes: 18 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,31 @@
"psr-4": {"JuniWalk\\Nestor\\": "src/"}
},

"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"sort-packages": true,
"allow-plugins": {
"phpstan/extension-installer": true
}
},

"require": {
"php": ">=8.1",
"doctrine/orm": "^2.0|^3.0",
"juniwalk/orm": "^0.7|^0.8|^0.9",
"juniwalk/utils": "^3.0"
},

"require-dev": {
"nette/tester": "^2.5",
"phpstan/extension-installer": "^1.0",
"phpstan/phpstan": "^1.0",
"phpstan/phpstan-nette": "^1.0",
"staabm/phpstan-todo-by": "^0.1",
"tracy/tracy": "^2.10"
},

"suggest": {
"nette/di": "For integration into Nette project"
}
Expand Down
8 changes: 8 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
parameters:
level: 9
paths:
- src
- tests

todo_by:
referenceVersion: "nextMinor"
1 change: 1 addition & 0 deletions tests/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/*/output
12 changes: 12 additions & 0 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php declare(strict_types=1);

/**
* @copyright Martin Procházka (c) 2024
* @license MIT License
*/

use Tester\Environment;

require __DIR__.'/../vendor/autoload.php';

Environment::setup();

0 comments on commit b1bfd84

Please sign in to comment.