File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 44
55namespace SimpleSAML \Test \XML ;
66
7- use DOMDocument ;
7+ use PHPUnit \ Framework \ Attributes \ DoesNotPerformAssertions ;
88use PHPUnit \Framework \TestCase ;
99use SimpleSAML \Test \Helper \Base64BinaryElement ;
1010use SimpleSAML \Test \Helper \BooleanElement ;
2020 */
2121final class SchemaValidatableElementTraitTest extends TestCase
2222{
23+ #[DoesNotPerformAssertions]
2324 public function testSchemaValidationPasses (): void
2425 {
2526 $ file = 'tests/resources/xml/ssp_StringElement.xml ' ;
2627 $ chunk = DOMDocumentFactory::fromFile ($ file );
2728
2829 $ document = StringElement::schemaValidate ($ chunk );
29- // @phpstan-ignore-next-line
30- $ this ->assertInstanceOf (DOMDocument::class, $ document );
3130 }
3231
3332
Original file line number Diff line number Diff line change 44
55namespace SimpleSAML \Test \XML ;
66
7+ use PHPUnit \Framework \Attributes \DoesNotPerformAssertions ;
78use PHPUnit \Framework \TestCase ;
89use SimpleSAML \Test \Helper \Base64BinaryElement ;
910use SimpleSAML \Test \Helper \BooleanElement ;
1920 */
2021final class TypedTextContentTraitTest extends TestCase
2122{
23+ #[DoesNotPerformAssertions]
2224 public function testTypedContentPassesForString (): void
2325 {
2426 $ file = 'tests/resources/xml/ssp_StringElement.xml ' ;
@@ -27,11 +29,10 @@ public function testTypedContentPassesForString(): void
2729 $ elt = $ doc ->documentElement ;
2830
2931 $ stringElt = StringElement::fromXML ($ elt );
30- // @phpstan-ignore-next-line
31- $ this ->assertInstanceOf (StringElement::class, $ stringElt );
3232 }
3333
3434
35+ #[DoesNotPerformAssertions]
3536 public function testTypedContentPassesForBoolean (): void
3637 {
3738 $ file = 'tests/resources/xml/ssp_BooleanElement.xml ' ;
@@ -40,8 +41,6 @@ public function testTypedContentPassesForBoolean(): void
4041 $ elt = $ doc ->documentElement ;
4142
4243 $ stringElt = BooleanElement::fromXML ($ elt );
43- // @phpstan-ignore-next-line
44- $ this ->assertInstanceOf (BooleanElement::class, $ stringElt );
4544 }
4645
4746
You can’t perform that action at this time.
0 commit comments