Skip to content

Commit 71b0187

Browse files
committed
Github self referential files for testing
1 parent 58a120d commit 71b0187

File tree

2 files changed

+38
-38
lines changed

2 files changed

+38
-38
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ In your phpunit.xml.dist config file, add the following lines in the **phpunit**
2424
<env name="PHPFUI\HTMLUnitTester\Extensions_delay" value="0"/>
2525
</php>
2626
```
27-
You can run against the online version at (https://validator.w3.org/nu/), but is recomended to use a delay of 500000 or higher to avoid overloading the server.
27+
You can run against the online version at (http://validator.w3.org/nu/), but is recomended to use a delay of 500000 or higher to avoid overloading the server.
2828

2929
## Usage
3030
Extend your unit tests from \PHPFUI\HTMLUnitTester\Extensions

tests/UnitTest.php

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class UnitTest extends \PHPFUI\HTMLUnitTester\Extensions
1818
public function testNotWarningCss() : void
1919
{
2020
$this->assertNotWarningCss('strong {font-weight: bolder;}');
21-
}
21+
}
2222

2323
public function testNotWarningCssFile() : void
2424
{
@@ -27,53 +27,53 @@ public function testNotWarningCssFile() : void
2727

2828
public function testNotWarningCssUrl() : void
2929
{
30-
$this->assertNotWarningCssUrl('https://validator.w3.org/nu/style.css');
30+
$this->assertNotWarningCssUrl('https://raw.githubusercontent.com/phpfui/HTMLUnitTester/master/examples/valid.css');
3131
}
3232

33-
public function testNotWarningFile() : void
34-
{
35-
$this->assertNotWarningFile('examples/valid.html');
36-
}
33+
public function testNotWarningFile() : void
34+
{
35+
$this->assertNotWarningFile('examples/valid.html');
36+
}
3737

38-
public function testNotWarningHtml() : void
39-
{
38+
public function testNotWarningHtml() : void
39+
{
4040
$this->assertNotWarningHtml('<h1>Header</h2>');
41-
}
41+
}
4242

43-
public function testNotWarningUrl() : void
44-
{
45-
$this->assertNotWarningUrl('https://validator.w3.org/nu/');
46-
}
43+
public function testNotWarningUrl() : void
44+
{
45+
$this->assertNotWarningUrl('https://raw.githubusercontent.com/phpfui/HTMLUnitTester/master/examples/valid.html');
46+
}
4747

48-
public function testValidCss() : void
49-
{
50-
$this->assertValidCss('strong {font-weight: bolder;}');
51-
}
48+
public function testValidCss() : void
49+
{
50+
$this->assertValidCss('strong {font-weight: bolder;}');
51+
}
5252

5353
public function testValidCssFile() : void
54-
{
55-
$this->assertValidCssFile('examples/valid.css');
54+
{
55+
$this->assertValidCssFile('examples/valid.css');
5656
}
5757

58-
public function testValidCssUrl() : void
59-
{
60-
$this->assertValidCssUrl('https://validator.w3.org/nu/style.css');
61-
}
58+
public function testValidCssUrl() : void
59+
{
60+
$this->assertValidCssUrl('https://raw.githubusercontent.com/phpfui/HTMLUnitTester/master/examples/valid.css');
61+
}
6262

63-
public function testValidFile() : void
64-
{
65-
$this->assertValidFile('examples/valid.html');
66-
}
63+
public function testValidFile() : void
64+
{
65+
$this->assertValidFile('examples/valid.html');
66+
}
6767

68-
public function testValidHtml()
69-
{
70-
$this->assertValidHtml('<h1>Header</h1>');
71-
$this->assertValidHtml('<!DOCTYPE html><html><head><meta charset="utf-8"/><title>Title</title></head><body><div>This is a test</div></body></html>');
72-
}
68+
public function testValidHtml()
69+
{
70+
$this->assertValidHtml('<h1>Header</h1>');
71+
$this->assertValidHtml('<!DOCTYPE html><html><head><meta charset="utf-8"/><title>Title</title></head><body><div>This is a test</div></body></html>');
72+
}
7373

74-
public function testValidUrl() : void
75-
{
76-
$this->assertValidUrl('https://validator.w3.org/nu/');
77-
}
74+
public function testValidUrl() : void
75+
{
76+
$this->assertValidUrl('https://raw.githubusercontent.com/phpfui/HTMLUnitTester/master/examples/valid.html');
77+
}
7878

79-
}
79+
}

0 commit comments

Comments
 (0)