Skip to content

Commit

Permalink
Merge pull request #18 from tarfin-labs/php-8-2-support
Browse files Browse the repository at this point in the history
php 8.2 support added
  • Loading branch information
frkcn authored May 11, 2023
2 parents af5c9a7 + 46262de commit 9ec9fa0
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 35 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,29 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [7.3, 7.4, 8.0, 8.1]
laravel: [6.*, 7.*, 8.*, 9.*, 10.*]
dependency-version: [prefer-lowest, prefer-stable]
php: [7.3, 7.4, '8.0', 8.1, 8.2]
laravel: [6, 7, 8, 9, 10]
exclude:
- php: 7.3
laravel: 9
- php: 7.3
laravel: 10
- php: 7.4
laravel: 9
- php: 7.4
laravel: 10
- php: '8.0'
laravel: 10
- php: 8.1
laravel: 6
- php: 8.1
laravel: 7
- php: 8.2
laravel: 6
- php: 8.2
laravel: 7
- php: 8.2
laravel: 8

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}

Expand Down
1 change: 1 addition & 0 deletions .phpunit.cache/test-results
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":1,"defects":[],"times":{"TarfinLabs\\EasyPdf\\Tests\\MergeTest::it_can_merge_multiple_files_into_one_file":0.1,"TarfinLabs\\EasyPdf\\Tests\\MergeTest::it_can_add_watermark_into_the_file":0.109,"TarfinLabs\\EasyPdf\\Tests\\ParserTest::it_can_return_pdf_page_count":0.003,"TarfinLabs\\EasyPdf\\Tests\\ParserTest::it_can_use_pdf_content_as_a_parameter":0.001,"TarfinLabs\\EasyPdf\\Tests\\ParserTest::it_can_parse_pdf_by_page":0.003,"TarfinLabs\\EasyPdf\\Tests\\ParserTest::it_can_return_pdf_content":0.003,"TarfinLabs\\EasyPdf\\Tests\\ParserTest::it_can_split_one_file_to_multiple_files":0.011,"TarfinLabs\\EasyPdf\\Tests\\PdfTest::it_can_convert_html_to_pdf":0.004}}
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ All notable changes to `easy-pdf` will be documented in this file.

## [Unreleased]

## 2.8.0 - 2023-05-11
- Php 8.2 support added.

## 2.7.0 - 2023-02-22
- Add `setMargins()` method.
- Add `setHeaderData()` method.
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
}
],
"require": {
"php": "^7.3|^8.0|^8.1",
"php": "^7.3|^8.0|^8.1|^8.2",
"illuminate/support": "6.11.0|^7.0|^8.0|^9.0|^10.0",
"setasign/fpdi-tcpdf": "^2.2",
"tecnickcom/tcpdf": "^6.3",
"ext-fileinfo": "*"
},
"require-dev": {
"mockery/mockery": "^1.3",
"orchestra/testbench": "^4.0|^5.0|^6.0|^7.0",
"orchestra/testbench": "^4.0|^5.0|^6.0|^7.0|^8.0",
"phpunit/phpunit": "^9.0|^10.0"
},
"autoload": {
Expand Down
47 changes: 17 additions & 30 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,32 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/autoload.php"
backupGlobals="false"
backupStaticAttributes="false"
colors="true"
verbose="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
<testsuites>
<testsuite name="Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">src/</directory>
</whitelist>
</filter>
<php>
<env name="DB_CONNECTION" value="testing"/>
</php>
<logging>
<log type="tap" target="build/report.tap"/>
<log type="junit" target="build/report.junit.xml"/>
<log type="coverage-html" target="build/coverage"/>
<log type="coverage-text" target="build/coverage.txt"/>
<log type="coverage-clover" target="build/logs/clover.xml"/>
</logging>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.1/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<testsuites>
<testsuite name="Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<php>
<env name="DB_CONNECTION" value="testing"/>
</php>
<logging>
<junit outputFile="build/report.junit.xml"/>
</logging>
<source>
<include>
<directory suffix=".php">src/</directory>
</include>
</source>
</phpunit>

0 comments on commit 9ec9fa0

Please sign in to comment.