Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3748756
D2506.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D2506.diff
View Options
diff --git a/.phan/config.php b/.phan/config.php
new file mode 100644
--- /dev/null
+++ b/.phan/config.php
@@ -0,0 +1,12 @@
+<?php
+
+return [
+ 'target_php_version' => '8.0',
+ 'directory_list' => [
+ 'src',
+ ],
+ 'exclude_file_regex' => '@^vendor/.*/(tests?|Tests?)/@',
+ 'exclude_analysis_directory_list' => [
+ 'vendor/'
+ ],
+];
diff --git a/composer.json b/composer.json
--- a/composer.json
+++ b/composer.json
@@ -3,7 +3,10 @@
"description": "Build a report with sections and entries. Markdown, PHP objects and HTML outputs.",
"type": "library",
"require-dev": {
- "phpunit/phpunit": "^9.5"
+ "nasqueron/codestyle": "^0.0.1",
+ "phan/phan": "^5.3",
+ "phpunit/phpunit": "^9.5",
+ "squizlabs/php_codesniffer": "^3.6"
},
"license": "BSD-2-Clause",
"autoload": {
diff --git a/phpcs.xml b/phpcs.xml
new file mode 100644
--- /dev/null
+++ b/phpcs.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0"?>
+<ruleset name="Nasqueron">
+ <rule ref="vendor/nasqueron/codestyle/CodeSniffer/ruleset.xml" />
+
+ <file>src</file>
+ <file>tests</file>
+</ruleset>
diff --git a/phpunit.xml b/phpunit.xml
new file mode 100644
--- /dev/null
+++ b/phpunit.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
+ bootstrap="vendor/autoload.php"
+ convertErrorsToExceptions="true"
+ convertNoticesToExceptions="true"
+ convertWarningsToExceptions="true"
+ stopOnFailure="false">
+ <php>
+ <ini name="display_errors" value="On" />
+ <ini name="display_startup_errors" value="On" />
+ <ini name="error_reporting" value="On" />
+ </php>
+ <testsuites>
+ <testsuite name="Unit tests">
+ <directory suffix="Test.php">./tests</directory>
+ </testsuite>
+ </testsuites>
+ <coverage processUncoveredFiles="true">
+ <include>
+ <directory suffix=".php">src/</directory>
+ </include>
+ </coverage>
+</phpunit>
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 10:33 (6 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2249207
Default Alt Text
D2506.diff (2 KB)
Attached To
Mode
D2506: Configure phan, phpunit and phpcs
Attached
Detach File
Event Timeline
Log In to Comment