Skip to content
Merged
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
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"ext-xsl": "*",
"ext-xmlreader": "*",
"ext-xmlwriter": "*",
"azjezz/psl": "^3.0 || ^4.0",
"azjezz/psl": "^3.0 || ^4.0 || ^5.0",
"webmozart/assert": "^1.10"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion tests/Xml/Dom/Loader/XmlFileLoaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function test_it_throws_exception_on_invalid_file(): void
$loader = xml_file_loader('invalid-file');

$this->expectException(RuntimeException::class);
$this->expectExceptionMessage('The file "invalid-file" does not exist');
$this->expectExceptionMessage('"invalid-file" does not exist');

$loader($doc);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Xml/Reader/Configurator/XsdSchemaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function test_it_triggers_an_error_if_schema_file_does_not_exist(): void
$iterator = $reader->provide(element_name('user'));

$this->expectException(RuntimeException::class);
$this->expectExceptionMessage('The file "unkown-file" does not exist.');
$this->expectExceptionMessage('"unkown-file" does not exist');
[...$iterator];

fclose($xsdHandle);
Expand Down
2 changes: 1 addition & 1 deletion tests/Xml/Reader/Loader/XmlFileLoaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ final class XmlFileLoaderTest extends TestCase
public function test_it_invalid_file_loader(): void
{
$this->expectException(RuntimeException::class);
$this->expectExceptionMessage('The file "invalid-file" does not exist.');
$this->expectExceptionMessage('"invalid-file" does not exist');

xml_file_loader('invalid-file')();
}
Expand Down
2 changes: 0 additions & 2 deletions tests/Xml/Reader/Node/NodeSequenceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,6 @@ public function test_it_can_slice_node_sequence(): void
$element2 = new ElementNode(1, 'item2', 'item2', '', '', []),
);

static::assertEquals($sequence, $sequence->slice(-1));
static::assertEquals(new NodeSequence($element1), $sequence->slice(-1, 1));
static::assertEquals(new NodeSequence($element1), $sequence->slice(0, 1));
static::assertEquals(new NodeSequence($element1, $element2), $sequence->slice(0));
static::assertEquals(new NodeSequence($element2), $sequence->slice(1, 1));
Expand Down
2 changes: 1 addition & 1 deletion tests/Xml/Xslt/Configurator/ProfilerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function test_it_can_use_a_profiler(): void
public function test_setting_an_invalid_profiler_location_doesnt_result(): void
{
$this->expectException(RuntimeException::class);
$this->expectExceptionMessage('The file "/THISFOLDERSHOULDNOTEXIST" does not exist.');
$this->expectExceptionMessage('/THISFOLDERSHOULDNOTEXIST');

Processor::fromTemplateDocument(
$this->createTemplate(),
Expand Down
Loading