Skip to content

Commit 0b75e5d

Browse files
authored
Merge pull request #7 from dingo-d/add-text-element-node
Add basic elements
2 parents 2999162 + fe1c1f5 commit 0b75e5d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+3264
-170
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: "Set up PHP"
3535
uses: "shivammathur/setup-php@v2"
3636
with:
37-
php-version: "7.4"
37+
php-version: "8.3"
3838
coverage: "none"
3939

4040
- name: "Checkout code"
@@ -64,17 +64,14 @@ jobs:
6464
strategy:
6565
fail-fast: false
6666
matrix:
67-
php: [ '8.1', '8.0', '7.4' ]
67+
php: [ '8.3', '8.4' ]
6868
allowed_failure: [ false ]
6969
dependencies:
7070
- "lowest"
7171
- "highest"
7272
include:
73-
- php: '8.2'
73+
- php: '8.5'
7474
allowed_failure: true
75-
exclude:
76-
- php: '8.1'
77-
dependencies: "lowest" # Fails due to PHP parser error on a specific version.
7875
steps:
7976
- name: "Set up PHP"
8077
uses: "shivammathur/setup-php@v2"
@@ -116,10 +113,10 @@ jobs:
116113
strategy:
117114
fail-fast: false
118115
matrix:
119-
php: [ '8.1', '8.0', '7.4' ]
116+
php: [ '8.3', '8.4' ]
120117
allowed_failure: [ false ]
121118
include:
122-
- php: '8.2'
119+
- php: '8.5'
123120
allowed_failure: true
124121
steps:
125122
- name: "Set up PHP"
@@ -152,10 +149,10 @@ jobs:
152149
strategy:
153150
fail-fast: false
154151
matrix:
155-
php: [ '8.1', '8.0', '7.4' ]
152+
php: [ '8.3', '8.4' ]
156153
allowed_failure: [ false ]
157154
include:
158-
- php: '8.2'
155+
- php: '8.5'
159156
allowed_failure: true
160157
steps:
161158
- name: "Set up PHP"

composer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@
2121
}
2222
],
2323
"require": {
24-
"php": ">=7.4",
24+
"php": ">=8.3",
2525
"ext-simplexml": "*"
2626
},
2727
"require-dev": {
28-
"squizlabs/php_codesniffer": "^3.7",
29-
"pestphp/pest": "^1.22",
30-
"phpstan/phpstan": "^1.9",
28+
"captainhook/captainhook": "^5",
29+
"pestphp/pest": "^3.8",
30+
"php-parallel-lint/php-parallel-lint": "^1.3",
3131
"phpcompatibility/php-compatibility": "^9.3",
32-
"captainhook/captainhook": "^5.11",
33-
"php-parallel-lint/php-parallel-lint": "^1.3"
32+
"phpcsstandards/php_codesniffer": "^3.13",
33+
"phpstan/phpstan": "^2.1"
3434
},
3535
"autoload": {
3636
"psr-4": {
@@ -47,7 +47,7 @@
4747
"test:types": "@php ./vendor/bin/phpstan",
4848
"test:style": "@php ./vendor/bin/phpcs",
4949
"test:unit": "@php ./vendor/bin/pest",
50-
"test:coverage": "@php ./vendor/bin/pest --coverage",
50+
"test:coverage": "@php -dxdebug.mode=coverage ./vendor/bin/pest --coverage",
5151
"test": [
5252
"@test:style",
5353
"@test:types",

phpcs.xml.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
<!-- Additional arguments. -->
99
<arg value="sp"/>
10+
<arg name="colors"/>
1011
<arg name="basepath" value="."/>
1112
<arg name="parallel" value="8"/>
1213
<arg name="extensions" value="php"/>

phpstan.neon.dist

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ parameters:
22
level: max
33
paths:
44
- src
5-
6-
checkMissingIterableValueType: true
75
reportUnmatchedIgnoredErrors: true
86
universalObjectCratesClasses:
97
- SimpleXMLElement
10-

phpunit.xml

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
4-
bootstrap="vendor/autoload.php"
5-
colors="true"
6-
>
7-
<testsuites>
8-
<testsuite name="Unit Test Suite">
9-
<directory>./tests/Unit/</directory>
10-
</testsuite>
11-
</testsuites>
12-
<coverage processUncoveredFiles="true">
13-
<include>
14-
<directory suffix=".php">./src</directory>
15-
</include>
16-
<report>
17-
<clover outputFile="tests/coverage/clover.xml"/>
18-
<html outputDirectory="tests/coverage/html" lowUpperBound="50" highLowerBound="90"/>
19-
</report>
20-
</coverage>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true" cacheDirectory=".phpunit.cache">
3+
<testsuites>
4+
<testsuite name="Unit Test Suite">
5+
<directory>./tests/Unit/</directory>
6+
</testsuite>
7+
</testsuites>
8+
<coverage>
9+
<report>
10+
<clover outputFile="tests/coverage/clover.xml"/>
11+
<html outputDirectory="tests/coverage/html" lowUpperBound="50" highLowerBound="90"/>
12+
</report>
13+
</coverage>
14+
<source>
15+
<include>
16+
<directory suffix=".php">./src</directory>
17+
</include>
18+
</source>
2119
</phpunit>

src/Elements/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)