Commit 0ca81745 authored by catch's avatar catch
Browse files

Issue #3316129 by mondrake: Fix AssertContentTraitTest PHPStan-0 issues

(cherry picked from commit 8d8d4e5e)
parent c01fefe9
Loading
Loading
Loading
Loading
+0 −65
Original line number Diff line number Diff line
@@ -1654,68 +1654,3 @@ parameters:
			message: "#^\\#pre_render callback '\\\\\\\\Drupal\\\\\\\\Tests\\\\\\\\Core…' at key '0' is not trusted\\.$#"
			count: 1
			path: tests/Drupal/Tests/Core/Render/RendererCallbackTest.php

		-
			message: "#^Call to an undefined method Drupal\\\\Tests\\\\Core\\\\Test\\\\TestClass\\:\\:assertArrayHasKey\\(\\)\\.$#"
			count: 3
			path: tests/Drupal/Tests/Core/Test/AssertContentTraitTest.php

		-
			message: "#^Call to an undefined method Drupal\\\\Tests\\\\Core\\\\Test\\\\TestClass\\:\\:assertDoesNotMatchRegularExpression\\(\\)\\.$#"
			count: 1
			path: tests/Drupal/Tests/Core/Test/AssertContentTraitTest.php

		-
			message: "#^Call to an undefined method Drupal\\\\Tests\\\\Core\\\\Test\\\\TestClass\\:\\:assertEmpty\\(\\)\\.$#"
			count: 6
			path: tests/Drupal/Tests/Core/Test/AssertContentTraitTest.php

		-
			message: "#^Call to an undefined method Drupal\\\\Tests\\\\Core\\\\Test\\\\TestClass\\:\\:assertEquals\\(\\)\\.$#"
			count: 2
			path: tests/Drupal/Tests/Core/Test/AssertContentTraitTest.php

		-
			message: "#^Call to an undefined method Drupal\\\\Tests\\\\Core\\\\Test\\\\TestClass\\:\\:assertMatchesRegularExpression\\(\\)\\.$#"
			count: 2
			path: tests/Drupal/Tests/Core/Test/AssertContentTraitTest.php

		-
			message: "#^Call to an undefined method Drupal\\\\Tests\\\\Core\\\\Test\\\\TestClass\\:\\:assertNotEmpty\\(\\)\\.$#"
			count: 10
			path: tests/Drupal/Tests/Core/Test/AssertContentTraitTest.php

		-
			message: "#^Call to an undefined method Drupal\\\\Tests\\\\Core\\\\Test\\\\TestClass\\:\\:assertNotEquals\\(\\)\\.$#"
			count: 1
			path: tests/Drupal/Tests/Core/Test/AssertContentTraitTest.php

		-
			message: "#^Call to an undefined method Drupal\\\\Tests\\\\Core\\\\Test\\\\TestClass\\:\\:assertNotFalse\\(\\)\\.$#"
			count: 1
			path: tests/Drupal/Tests/Core/Test/AssertContentTraitTest.php

		-
			message: "#^Call to an undefined method Drupal\\\\Tests\\\\Core\\\\Test\\\\TestClass\\:\\:assertSame\\(\\)\\.$#"
			count: 1
			path: tests/Drupal/Tests/Core/Test/AssertContentTraitTest.php

		-
			message: "#^Call to an undefined method Drupal\\\\Tests\\\\Core\\\\Test\\\\TestClass\\:\\:assertStringContainsString\\(\\)\\.$#"
			count: 3
			path: tests/Drupal/Tests/Core/Test/AssertContentTraitTest.php

		-
			message: "#^Call to an undefined method Drupal\\\\Tests\\\\Core\\\\Test\\\\TestClass\\:\\:assertStringNotContainsString\\(\\)\\.$#"
			count: 3
			path: tests/Drupal/Tests/Core/Test/AssertContentTraitTest.php

		-
			message: "#^Call to an undefined method Drupal\\\\Tests\\\\Core\\\\Test\\\\TestClass\\:\\:assertTrue\\(\\)\\.$#"
			count: 6
			path: tests/Drupal/Tests/Core/Test/AssertContentTraitTest.php

		-
			message: "#^Call to an undefined method Drupal\\\\Tests\\\\Core\\\\Test\\\\TestClass\\:\\:fail\\(\\)\\.$#"
			count: 3
			path: tests/Drupal/Tests/Core/Test/AssertContentTraitTest.php
+1 −1
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@ public function testGetTextContent() {

}

class TestClass {
class TestClass extends UnitTestCase {
  use AssertContentTrait;

  public function _setRawContent($content) {