10000 Add PHPDoc · symfony/symfony@8cfc0d2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8cfc0d2

Browse files
committed
Add PHPDoc
1 parent 7f64cfe commit 8cfc0d2

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/Symfony/Bridge/PhpUnit/Legacy/PolyfillTestCaseTrait.php

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111

1212
namespace Symfony\Bridge\PhpUnit\Legacy;
1313

14+
use PHPUnit\Framework\ExpectationFailedException;
1415
use PHPUnit\Framework\MockObject\MockObject;
1516
use PHPUnit\Framework\TestCase;
17+
use SebastianBergmann\RecursionContext\InvalidArgumentException;
1618

1719
/**
1820
* This trait is @internal.
@@ -117,7 +119,17 @@ public function expectExceptionMessageRegExp($messageRegExp)
117119
$property->setValue($this, $messageRegExp);
118120
}
119121

120-
public function assertMatchesRegularExpression($pattern, $string, $message = '') {
122+
/**
123+
* Asserts that a string matches a given regular expression.
124+
*
125+
* @param string $pattern
126+
* @param string $string
127+
* @param string $message
128+
*
129+
* @return void
130+
*/
131+
public function assertMatchesRegularExpression($pattern, $string, $message = '')
132+
{
121133
$this->assertRegExp($pattern, $string, $message);
122134
}
123135
}

0 commit comments

Comments
 (0)
0