Skip to content

Commit

Permalink
Merge pull request #4 from young-steveo/cleanup-main-directory
Browse files Browse the repository at this point in the history
Cleanup main directory
  • Loading branch information
young-steveo committed Jun 3, 2023
2 parents a2058fb + 6d62e2f commit 99f73d7
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.DS_Store
.phpunit.cache

/vendor/
/tests/.phpunit.cache
/tests/.coverage/
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Arcanum

A CQRS Backend for PHP.
A CQRS Backend Framework for PHP.

Currently there is only a container implementation.
Most of this was written with ChatGPT.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@
"cs-check": "bash contrib/cs-check",
"cs-fix": "phpcbf --colors --standard=./contrib/phpcs-ruleset.xml",
"phpstan": "bash contrib/phpstan",
"phpunit": "phpunit --colors=always --coverage-html=tests/.coverage"
"phpunit": "phpunit --colors=always --coverage-html=tests/.coverage --configuration=contrib/phpunit.xml"
}
}
4 changes: 2 additions & 2 deletions contrib/phpstan
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# @see https://phpstan.org/blog/why-you-should-always-analyse-whole-project
#
echo "Running PHPStan..."
phpstan --memory-limit=512M analyze -c phpstan.neon -v
phpstan --memory-limit=512M analyze -c contrib/phpstan.neon -v
if [ $? != 0 ]
then
cat <<EOF
Expand All @@ -21,4 +21,4 @@ phpstan failed.
EOF
exit 1
fi
fi
8 changes: 8 additions & 0 deletions contrib/phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
parameters:
level: 9
paths:
- ../src
- ../tests
excludePaths:
- ../tests/.coverage/*
- ../tests/.phpunit.cache/*
8 changes: 4 additions & 4 deletions phpunit.xml → contrib/phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.1/phpunit.xsd"
bootstrap="vendor/autoload.php"
cacheDirectory=".phpunit.cache"
bootstrap="../vendor/autoload.php"
cacheDirectory="../tests/.phpunit.cache"
executionOrder="depends,defects"
requireCoverageMetadata="true"
beStrictAboutCoverageMetadata="true"
Expand All @@ -11,13 +11,13 @@
failOnWarning="true">
<testsuites>
<testsuite name="default">
<directory>tests</directory>
<directory>../tests</directory>
</testsuite>
</testsuites>

<source restrictDeprecations="true" restrictNotices="true" restrictWarnings="true">
<include>
<directory>src</directory>
<directory>../src</directory>
</include>
</source>
</phpunit>
7 changes: 0 additions & 7 deletions phpstan.neon

This file was deleted.

0 comments on commit 99f73d7

Please sign in to comment.