Skip to content

Commit 88a5285

Browse files
committed
Fix OpenSPF tests, now that openspf.org is down
1 parent c08d93f commit 88a5285

7 files changed

+5271
-2
lines changed

tests/RFC4408Test.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*
44
* @author Mikael Peigney
55
*/
6+
67
namespace Mika56\SPFCheck;
78

89
class RFC4408Test extends OpenSPFTest
@@ -26,7 +27,7 @@ public function testRFC4408($ipAddress, $domain, DNSRecordGetterInterface $dnsDa
2627

2728
public function RFC4408DataProvider()
2829
{
29-
$scenarios = file_get_contents('http://www.openspf.org/svn/project/test-suite/rfc4408-tests.yml');
30+
$scenarios = file_get_contents(__DIR__.DIRECTORY_SEPARATOR.'rfc4408-tests.yml');
3031

3132
return $this->loadTestCases($scenarios);
3233
}

tests/RFC7208Test.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*
44
* @author Mikael Peigney
55
*/
6+
67
namespace Mika56\SPFCheck;
78

89
class RFC7208Test extends OpenSPFTest
@@ -26,7 +27,7 @@ public function testRFC7208($ipAddress, $domain, DNSRecordGetterInterface $dnsDa
2627

2728
public function RFC7208DataProvider()
2829
{
29-
$scenarios = file_get_contents('http://www.openspf.org/svn/project/test-suite/rfc7208-tests.yml');
30+
$scenarios = file_get_contents(__DIR__.DIRECTORY_SEPARATOR.'rfc7208-tests.yml');
3031
// Apparently there is a YML error in that file
3132
$scenarios = str_replace('Result is none if checking SPF records only', '>-'."\n".' Result is none if checking SPF records only', $scenarios);
3233

tests/rfc4408-tests.LICENSE

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
The RFC 4408 test-suite (rfc4408-tests.yml) is
2+
(C) 2006-2007 Stuart D Gathman <[email protected]>
3+
2007 Julian Mehnle <[email protected]>
4+
All rights reserved.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions
8+
are met:
9+
1. Redistributions of source code must retain the above copyright notice,
10+
this list of conditions and the following disclaimer.
11+
2. Redistributions in binary form must reproduce the above copyright
12+
notice, this list of conditions and the following disclaimer in the
13+
documentation and/or other materials provided with the distribution.
14+
3. The names of the authors may not be used to endorse or promote products
15+
derived from this software without specific prior written permission.
16+
17+
THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
18+
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19+
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,
21+
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22+
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26+
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

0 commit comments

Comments
 (0)