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
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function test_uses_expected_entry_for_response_body(string $entryClass, R
static::assertInstanceOf($entryClass, $entryFactory->create($response)->get('response_body'));
}

#[RequiresPhp('>= 8.4')]
#[RequiresPhp('>= 8.4.0')]
public function test_uses_html_entry_for_response_body_on_newer_php(): void
{
$entryFactory = new ResponseEntriesFactory();
Expand All @@ -63,7 +63,7 @@ public function test_uses_html_entry_for_response_body_on_newer_php(): void
static::assertInstanceOf(HTMLEntry::class, $entryFactory->create($response)->get('response_body'));
}

#[RequiresPhp('< 8.4')]
#[RequiresPhp('< 8.4.0')]
public function test_uses_string_entry_for_response_body_on_older_php(): void
{
$entryFactory = new ResponseEntriesFactory();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

final class DOMElementNextSiblingTest extends FlowTestCase
{
#[RequiresPhp('>= 8.4')]
#[RequiresPhp('>= 8.4.0')]
public function test_dom_element_sibling_text_value(): void
{
$rows = df()
Expand All @@ -43,7 +43,7 @@ public function test_dom_element_sibling_text_value(): void
);
}

#[RequiresPhp('>= 8.4')]
#[RequiresPhp('>= 8.4.0')]
public function test_dom_element_sibling_text_value_when_only_element_is_allowed(): void
{
$rows = df()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

final class DOMElementParentTest extends FlowTestCase
{
#[RequiresPhp('>= 8.4')]
#[RequiresPhp('>= 8.4.0')]
public function test_dom_element_value_from_dom_document(): void
{
$rows = df()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

final class DOMElementPreviousSiblingTest extends FlowTestCase
{
#[RequiresPhp('>= 8.4')]
#[RequiresPhp('>= 8.4.0')]
public function test_dom_element_sibling_text_value(): void
{
$rows = df()
Expand All @@ -43,7 +43,7 @@ public function test_dom_element_sibling_text_value(): void
);
}

#[RequiresPhp('>= 8.4')]
#[RequiresPhp('>= 8.4.0')]
public function test_dom_element_sibling_text_value_when_only_element_is_allowed(): void
{
$rows = df()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use const LIBXML_NOERROR;

// @mago-ignore analysis:unavailable-method
#[RequiresPhp('>= 8.4')]
#[RequiresPhp('>= 8.4.0')]
final class HTMLQuerySelectorAllTest extends TestCase
{
public function test_invalid_query_all_on_html_document(): void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use function Flow\ETL\DSL\rows;

// @mago-ignore analysis:unavailable-method
#[RequiresPhp('>= 8.4')]
#[RequiresPhp('>= 8.4.0')]
final class HTMLQuerySelectorTest extends TestCase
{
public function test_invalid_query_on_html_document(): void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

final class DOMElementAttributeValueTest extends TestCase
{
#[RequiresPhp('>= 8.4')]
#[RequiresPhp('>= 8.4.0')]
public function test_html_extracting_attribute_from_dom_element_entry(): void
{
// @mago-ignore analysis:unavailable-method
Expand All @@ -39,7 +39,7 @@ public function test_html_extracting_attribute_from_dom_element_entry(): void
));
}

#[RequiresPhp('>= 8.4')]
#[RequiresPhp('>= 8.4.0')]
public function test_html_extracting_non_existing_attribute_from_dom_element_entry(): void
{
// @mago-ignore analysis:unavailable-method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

final class DOMElementAttributesCountTest extends TestCase
{
#[RequiresPhp('>= 8.4')]
#[RequiresPhp('>= 8.4.0')]
public function test_html_attributes_count_on_element_with_multiple_attributes(): void
{
// @mago-ignore analysis:unavailable-method
Expand All @@ -39,7 +39,7 @@ public function test_html_attributes_count_on_element_with_multiple_attributes()
));
}

#[RequiresPhp('>= 8.4')]
#[RequiresPhp('>= 8.4.0')]
public function test_html_attributes_count_on_element_with_one_attribute(): void
{
// @mago-ignore analysis:unavailable-method
Expand All @@ -57,7 +57,7 @@ public function test_html_attributes_count_on_element_with_one_attribute(): void
));
}

#[RequiresPhp('>= 8.4')]
#[RequiresPhp('>= 8.4.0')]
public function test_html_attributes_count_on_element_with_zero_attributes(): void
{
// @mago-ignore analysis:unavailable-method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ final class DOMElementNamespaceTest extends TestCase
</Invoice>
XML;

#[RequiresPhp('>= 8.4')]
#[RequiresPhp('>= 8.4.0')]
public function test_html_getting_element_namespace(): void
{
// @mago-ignore analysis:unavailable-method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

final class DOMElementParentTest extends TestCase
{
#[RequiresPhp('>= 8.4')]
#[RequiresPhp('>= 8.4.0')]
public function test_html_fails_when_parent_not_available_in_strict_mode(): void
{
// @mago-ignore analysis:unavailable-method
Expand All @@ -36,7 +36,7 @@ public function test_html_fails_when_parent_not_available_in_strict_mode(): void
->eval(row($context->entryFactory()->create('value', $element->documentElement->parentElement)), $context);
}

#[RequiresPhp('>= 8.4')]
#[RequiresPhp('>= 8.4.0')]
public function test_html_getting_parent_element(): void
{
// @mago-ignore analysis:unavailable-method
Expand All @@ -55,7 +55,7 @@ public function test_html_getting_parent_element(): void
);
}

#[RequiresPhp('>= 8.4')]
#[RequiresPhp('>= 8.4.0')]
public function test_html_getting_parent_element_when_not_available(): void
{
// @mago-ignore analysis:unavailable-method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

final class DOMElementValueTest extends FlowTestCase
{
#[RequiresPhp('>= 8.4')]
#[RequiresPhp('>= 8.4.0')]
public function test_html_getting_element_value_with_children(): void
{
// @mago-ignore analysis:unavailable-method
Expand All @@ -36,7 +36,7 @@ public function test_html_getting_element_value_with_children(): void
));
}

#[RequiresPhp('>= 8.4')]
#[RequiresPhp('>= 8.4.0')]
public function test_html_getting_simple_element_value(): void
{
// @mago-ignore analysis:unavailable-method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

final class HTMLQuerySelectorAllTest extends TestCase
{
#[RequiresPhp('< 8.4')]
#[RequiresPhp('< 8.4.0')]
public function test_getting_element_for_older_versions(): void
{
$this->expectException(RequiredPHPVersionException::class);
Expand All @@ -26,7 +26,7 @@ public function test_getting_element_for_older_versions(): void
->eval(row(flow_context(config())->entryFactory()->create('value', '')), flow_context());
}

#[RequiresPhp('>= 8.4')]
#[RequiresPhp('>= 8.4.0')]
public function test_getting_elements_for_given_path(): void
{
// @mago-ignore analysis:unavailable-method
Expand All @@ -41,7 +41,7 @@ public function test_getting_elements_for_given_path(): void
static::assertInstanceOf(Element::class, $result[0]);
}

#[RequiresPhp('>= 8.4')]
#[RequiresPhp('>= 8.4.0')]
public function test_getting_null_when_nothing_found(): void
{
// @mago-ignore analysis:unavailable-method
Expand All @@ -54,7 +54,7 @@ public function test_getting_null_when_nothing_found(): void
static::assertNull($result);
}

#[RequiresPhp('>= 8.4')]
#[RequiresPhp('>= 8.4.0')]
public function test_invalid_value(): void
{
$result = ref('value')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

final class HTMLQuerySelectorTest extends TestCase
{
#[RequiresPhp('< 8.4')]
#[RequiresPhp('< 8.4.0')]
public function test_getting_element_for_older_versions(): void
{
$this->expectException(RequiredPHPVersionException::class);
Expand All @@ -26,7 +26,7 @@ public function test_getting_element_for_older_versions(): void
->eval(row(flow_context(config())->entryFactory()->create('value', '')), flow_context());
}

#[RequiresPhp('>= 8.4')]
#[RequiresPhp('>= 8.4.0')]
public function test_getting_elements_for_given_path(): void
{
// @mago-ignore analysis:unavailable-method
Expand All @@ -39,7 +39,7 @@ public function test_getting_elements_for_given_path(): void
static::assertInstanceOf(Element::class, $result);
}

#[RequiresPhp('>= 8.4')]
#[RequiresPhp('>= 8.4.0')]
public function test_getting_null_when_nothing_found(): void
{
// @mago-ignore analysis:unavailable-method
Expand All @@ -52,7 +52,7 @@ public function test_getting_null_when_nothing_found(): void
static::assertNull($result);
}

#[RequiresPhp('>= 8.4')]
#[RequiresPhp('>= 8.4.0')]
public function test_invalid_value(): void
{
$result = ref('value')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ public function test_handles_single_partition(): void
}

static::assertCount(3, $allRows);
// @mago-ignore analysis:deprecated-method
static::assertContainsOnly('int', array_column($allRows, 'rank'));
static::assertContainsOnlyInt(array_column($allRows, 'rank'));
}

public function test_processes_multiple_partitions(): void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use function preg_replace;

// @mago-ignore analysis:unavailable-method
#[RequiresPhp('>= 8.4')]
#[RequiresPhp('>= 8.4.0')]
final class HTMLEntryTest extends TestCase
{
public static function is_equal_data_provider(): Generator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

final class XMLElementEntryTest extends FlowTestCase
{
#[RequiresPhp('>= 8.4')]
#[RequiresPhp('>= 8.4.0')]
public function test_create_from_dom_xmldocument(): void
{
// @mago-ignore analysis:unavailable-method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public function test_canonicalization(): void
static::assertNotEquals(xml_entry('row', $doc), xml_entry('row', $doc2));
}

#[RequiresPhp('>= 8.4')]
#[RequiresPhp('>= 8.4.0')]
public function test_canonicalization_with_dom_xmldocument(): void
{
// @mago-ignore analysis:unavailable-method
Expand Down Expand Up @@ -149,7 +149,7 @@ public function test_creating_xml_entry_with_empty_dom_document(): void
static::assertSame("<?xml version=\"1.0\"?>\n", $entry->__toString());
}

#[RequiresPhp('>= 8.4')]
#[RequiresPhp('>= 8.4.0')]
public function test_creating_xml_entry_with_empty_dom_xmldocument(): void
{
// @mago-ignore analysis:unavailable-method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ public function test_html_element_from_string(): void
);
}

#[RequiresPhp('>= 8.4')]
#[RequiresPhp('>= 8.4.0')]
public function test_html_element_string_with_html_definition_provided(): void
{
static::assertEquals(
Expand All @@ -313,7 +313,7 @@ public function test_html_element_string_with_html_definition_provided(): void
);
}

#[RequiresPhp('>= 8.4')]
#[RequiresPhp('>= 8.4.0')]
public function test_html_from_dom_html_document(): void
{
// @mago-ignore analysis:unavailable-method
Expand All @@ -334,7 +334,7 @@ public function test_html_from_string(): void
);
}

#[RequiresPhp('>= 8.4')]
#[RequiresPhp('>= 8.4.0')]
public function test_html_string_with_html_definition_provided(): void
{
// @mago-ignore analysis:unavailable-method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function test_add_metadata(): void
static::assertSame('value', $withMeta->metadata()->get('key'));
}

#[RequiresPhp('>= 8.4')]
#[RequiresPhp('>= 8.4.0')]
public function test_does_not_match_entry_with_different_name(): void
{
$def = html_schema('content');
Expand Down Expand Up @@ -152,7 +152,7 @@ public function test_make_nullable(): void
static::assertFalse($def->isNullable());
}

#[RequiresPhp('>= 8.4')]
#[RequiresPhp('>= 8.4.0')]
public function test_matches_entry_with_same_name_and_type(): void
{
$def = html_schema('content');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function test_add_metadata(): void
static::assertSame('value', $withMeta->metadata()->get('key'));
}

#[RequiresPhp('>= 8.4')]
#[RequiresPhp('>= 8.4.0')]
public function test_does_not_match_entry_with_different_name(): void
{
$def = html_element_schema('element');
Expand Down Expand Up @@ -152,7 +152,7 @@ public function test_make_nullable(): void
static::assertFalse($def->isNullable());
}

#[RequiresPhp('>= 8.4')]
#[RequiresPhp('>= 8.4.0')]
public function test_matches_entry_with_same_name_and_type(): void
{
$def = html_element_schema('element');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ public static function list_compatibility_provider(): Generator
list_schema('list', type_list(type_integer())),
list_schema('list', type_list(type_integer())),
true,
false,
];

yield [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function test_enum_entries(): void
);
}

#[RequiresPhp('>= 8.4')]
#[RequiresPhp('>= 8.4.0')]
public function test_html_entries(): void
{
$rows = rows(row(html_entry('html', '<html><body><p>hello</p></body></html>')));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,11 @@ abstract class IntegrationTestCase extends TestCase
{
protected DatabaseContext $databaseContext;

protected readonly ProxyLogger $logger;
protected ProxyLogger $logger;

/**
* @param non-empty-string $name
*/
public function __construct(string $name)
protected function setUp(): void
{
$this->logger = new ProxyLogger();

parent::__construct($name);
}

protected function tearDown(): void
Expand Down
Loading
Loading