Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ jobs:
with:
php-version: ${{ matrix.php }}
coverage: none
tools: phive
tools: phive, composer

- name: Install tools (phive)
run: phive install --trust-gpg-keys 4AA394086372C20A,2A8299CE842DD38C,E82B2FB314E9906E

- name: Generate Autoloader (phpab)
run: ./tools/phpab --output ./src/autoload.php ./src
- name: Generate Autoloader
run: composer dump-autoload

- name: Run unit tests (phpunit)
run: ./tools/phpunit
2 changes: 1 addition & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" bootstrap="src/autoload.php"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" bootstrap="vendor/autoload.php"
backupGlobals="false" beStrictAboutOutputDuringTests="true" beStrictAboutTestsThatDoNotTestAnything="true"
beStrictAboutTodoAnnotatedTests="true" verbose="true">

Expand Down
5 changes: 5 additions & 0 deletions tests/XMLSerializerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

use DOMDocument;
use PHPUnit\Framework\TestCase;
use ReflectionClass;
use XMLWriter;
use function file_get_contents;

Expand All @@ -14,6 +15,10 @@ class XMLSerializerTest extends TestCase {
private $tokens;

protected function setUp(): void {
$class = new ReflectionClass(XMLSerializer::class);
var_dump($class->getFileName());
exit();

$this->tokens = unserialize(
file_get_contents(__DIR__ . '/_files/test.php.tokens'),
[TokenCollection::class]
Expand Down
Loading