Skip to content

Commit 8e571f8

Browse files
committed
Update tests
Fixes some warnings in newer versions of PHPUnit.
1 parent f1ffcab commit 8e571f8

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

tests/Mf2/ParserTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ public function testParseEWithWhitespace() {
139139
* @group parseH
140140
*/
141141
public function testInvalidClassnamesContainingHAreIgnored() {
142+
self::expectNotToPerformAssertions();
143+
142144
$input = '<div class="asdfgh-jkl"></div>';
143145
$parser = new Parser($input);
144146
$output = $parser->parse();

tests/Mf2/URLTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use Mf2;
1010
use Yoast\PHPUnitPolyfills\TestCases\TestCase;
1111

12-
class UrlTest extends TestCase {
12+
class URLTest extends TestCase {
1313
protected function set_up() {
1414
date_default_timezone_set('Europe/London');
1515
}
@@ -149,15 +149,15 @@ public function testResolvesProtocolRelativeUrlsCorrectly() {
149149
}
150150

151151
/**
152-
* @dataProvider testData
152+
* @dataProvider dataProvider
153153
*/
154154
public function testReturnsUrlIfAbsolute($assert, $base, $url, $expected) {
155155
$actual = mf2\resolveUrl($base, $url);
156156

157157
$this->assertEquals($expected, $actual, $assert);
158158
}
159159

160-
public function testData() {
160+
public function dataProvider() {
161161
// seriously, please update to PHP 5.4 so I can use nice array syntax ;)
162162
// fail message, base, url, expected
163163
$cases = array(

0 commit comments

Comments
 (0)