@@ -11,35 +11,28 @@ private function _testEquals($expected, $headers) {
11
11
12
12
public function testExample () {
13
13
$ this ->_testEquals (array (
14
- 'rels ' => array (
15
- 'd ' => array ('http://example.org/query?a=b,c ' ),
16
- 'e ' => array ('http://example.org/query?a=b,c ' ),
17
- 'f ' => array ('http://example.org/ ' ),
18
- )
14
+ 'd ' => array ('http://example.org/query?a=b,c ' ),
15
+ 'e ' => array ('http://example.org/query?a=b,c ' ),
16
+ 'f ' => array ('http://example.org/ ' ),
19
17
), "Link: <http://example.org/query?a=b,c>; rel= \"d e \", <http://example.org/>; rel=f " );
20
18
}
21
19
22
20
public function testMultipleAttributes () {
23
21
$ this ->_testEquals (array (
24
- 'rels ' => array (
25
- 'foo ' => array ('http://example.org/ ' ),
26
- )
22
+ 'foo ' => array ('http://example.org/ ' ),
27
23
), "Link: <http://example.org/>; rel= \"foo \"; title= \"Example \"" );
28
24
}
29
25
30
26
public function testLinkNoRelValue () {
31
27
$ this ->_testEquals (array (
32
- 'rels ' => array (
33
- )
34
28
), "Link: <http://example.org/>; title= \"Example \"" );
35
29
}
36
30
37
31
public function testAaronParecki () {
38
32
$ this ->_testEquals (array (
39
- 'rels ' => array (
40
- 'http://webmention.org/ ' => array ('http://aaronparecki.com/webmention.php ' ),
41
- 'indieauth ' => array ('https://indieauth.com ' ),
42
- )
33
+ 'http://webmention.org/ ' => array ('http://aaronparecki.com/webmention.php ' ),
34
+ 'indieauth ' => array ('https://indieauth.com ' ),
35
+ 'pingback ' => array ('http://pingback.me/webmention?forward=http%3A%2F%2Faaronparecki.com%2Fwebmention.php ' )
43
36
), "HTTP/1.1 200 OK
44
37
Server: nginx/1.0.14
45
38
Date: Sat, 26 Oct 2013 01:40:11 GMT
@@ -52,9 +45,7 @@ public function testAaronParecki() {
52
45
53
46
public function testBarryFrost () {
54
47
$ this ->_testEquals (array (
55
- 'rels ' => array (
56
- 'webmention ' => array ('http://barryfrost.com/webmention ' ),
57
- )
48
+ 'webmention ' => array ('http://barryfrost.com/webmention ' ),
58
49
), "HTTP/1.1 200 OK
59
50
Cache-Control: max-age=0, private, must-revalidate
60
51
Content-length: 19600
0 commit comments