-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Переход на PHP 8.2 * refactoring * datetime immutable * fix github actions * fix github actions * add getDuration() into README * changelog
- Loading branch information
Showing
23 changed files
with
195 additions
and
187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
name: PHPUnit | ||
on: [push] | ||
name: Tests | ||
on: [ push ] | ||
|
||
jobs: | ||
PHPUnit: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
PHP: [ "7.3", "7.4", "8.0", "8.1", "8.2" ] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: php-actions/composer@v6 | ||
with: | ||
php_version: 8.2 | ||
- name: PHPUnit Tests | ||
uses: php-actions/phpunit@master | ||
with: | ||
configuration: test/phpunit/phpunit.xml | ||
args: --testdox | ||
version: 9 | ||
php_version: 8.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,6 @@ | |
/.idea | ||
|
||
composer.lock | ||
example.php | ||
|
||
/vendor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# v3.0.0 | ||
|
||
### Compatibility-breaking changes: | ||
- PHP version has been upgraded to 8.2. | ||
- The namespace `exceptions` has been renamed to `Exceptions` | ||
- The file `bootstrap.php` has been removed. | ||
- The `getTypeString()` method of the `Entry` class now returns an `EntryTypeEnum`. | ||
- `DateTime` has been changed to `DateTimeImmutable`. | ||
|
||
### Non-compatibility-breaking changes: | ||
- DTO classes are now readonly. | ||
- All parser exceptions now inherit from the `ParserException` class. | ||
- The Demo class has added a `getDuration()` method that returns the duration of the demo file in seconds. | ||
- An `EntryTypeEnum` enum has been added. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace VitalyArt\DemoParser\Enums; | ||
|
||
enum EntryTypeEnum: string | ||
{ | ||
case LOADING = 'loading'; | ||
case PLAYBACK = 'playback'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace VitalyArt\DemoParser\Exceptions; | ||
|
||
class FileNotExistsException extends ParserException | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace VitalyArt\DemoParser\Exceptions; | ||
|
||
class FileNotSpecifiedException extends ParserException | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace VitalyArt\DemoParser\Exceptions; | ||
|
||
class IsNotADemoException extends ParserException | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace VitalyArt\DemoParser\Exceptions; | ||
|
||
class NotReadableException extends ParserException | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace VitalyArt\DemoParser\Exceptions; | ||
|
||
class ParserException extends \Exception | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace VitalyArt\DemoParser\Exceptions; | ||
|
||
class WrongExtensionException extends ParserException | ||
{ | ||
|
||
} |
Oops, something went wrong.