Skip to content
This repository was archived by the owner on Dec 20, 2025. It is now read-only.

Commit 7dd4951

Browse files
Dependency updates. (#51)
* Bump the version of phpSpec to 4.0 * Remove license from composer and license. * Remove support for PHP 5.6 * More https fixes.
1 parent 4fafbbd commit 7dd4951

File tree

7 files changed

+9
-11
lines changed

7 files changed

+9
-11
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ cache:
77
language: php
88

99
php:
10-
- 5.6
1110
- 7.0
1211
- 7.1
1312

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (C) 2013 Mathew Davies <thepixeldeveloper@googlemail.com>
1+
Copyright (C) 2017 Mathew Davies
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation
44
files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy,

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"authors": [
88
{
99
"name": "Mathew Davies",
10-
"email": "thepixeldeveloper@googlemail.com",
1110
"homepage": "http://mathew-davies.co.uk",
1211
"role": "Developer"
1312
}
@@ -16,7 +15,7 @@
1615
"php": ">=5.6.0"
1716
},
1817
"require-dev": {
19-
"phpspec/phpspec": "^2.4"
18+
"phpspec/phpspec": "^4.0"
2019
},
2120
"autoload": {
2221
"psr-4": {

spec/OutputSpec.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function it_should_format_a_sitemapindex_with_n_sitemaps()
2222
{
2323
$xml = <<<XML
2424
<?xml version="1.0" encoding="UTF-8"?>
25-
<sitemapindex xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
25+
<sitemapindex xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 https://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
2626
<sitemap>
2727
<loc>https://www.example.com/sitemap1.xml.gz</loc>
2828
</sitemap>
@@ -43,7 +43,7 @@ function it_should_generate_a_sitemap_of_images()
4343
{
4444
$xml = <<<XML
4545
<?xml version="1.0" encoding="UTF-8"?>
46-
<urlset xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="https://www.google.com/schemas/sitemap-image/1.1">
46+
<urlset xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 https://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="https://www.google.com/schemas/sitemap-image/1.1">
4747
<url>
4848
<loc>https://www.example.com/1</loc>
4949
<image:image>
@@ -101,7 +101,7 @@ function it_should_generate_a_sitemap_with_links()
101101
{
102102
$xml = <<<XML
103103
<?xml version="1.0" encoding="UTF-8"?>
104-
<urlset xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
104+
<urlset xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 https://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
105105
<url>
106106
<loc>https://www.example.com/english/</loc>
107107
<xhtml:link rel="alternate" hreflang="de" href="https://www.example.com/deutsch/"/>
@@ -149,7 +149,7 @@ function it_should_write_processing_instructions()
149149
$xml = <<<XML
150150
<?xml version="1.0" encoding="UTF-8"?>
151151
<?xml-stylesheet type="text/xsl" href="/path/to/xslt/main-sitemap.xsl"?>
152-
<urlset xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
152+
<urlset xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 https://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
153153
<url>
154154
<loc>https://www.example.com/english/</loc>
155155
<xhtml:link rel="alternate" hreflang="de" href="https://www.example.com/deutsch/"/>

spec/UrlsetSpec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function it_should_only_append_attributes_once_for_each_subelement_type(XMLWrite
3232
{
3333
$xmlWriter->startElement('urlset')->shouldBeCalled();
3434
$xmlWriter->writeAttribute('xmlns:xsi', 'https://www.w3.org/2001/XMLSchema-instance')->shouldBeCalled();
35-
$xmlWriter->writeAttribute('xsi:schemaLocation', 'http://www.sitemaps.org/schemas/sitemap/0.9 ' . 'http://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd')->shouldBeCalled();
35+
$xmlWriter->writeAttribute('xsi:schemaLocation', 'http://www.sitemaps.org/schemas/sitemap/0.9 ' . 'https://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd')->shouldBeCalled();
3636
$xmlWriter->writeAttribute('xmlns', 'http://www.sitemaps.org/schemas/sitemap/0.9')->shouldBeCalled();
3737

3838
$url->getSubelementsThatAppend()->willReturn([$image, $video]);

src/SitemapIndex.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function generateXML(XMLWriter $XMLWriter)
4343
$XMLWriter->writeAttribute(
4444
'xsi:schemaLocation',
4545
'http://www.sitemaps.org/schemas/sitemap/0.9 ' .
46-
'http://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd'
46+
'https://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd'
4747
);
4848

4949
$XMLWriter->writeAttribute('xmlns', 'http://www.sitemaps.org/schemas/sitemap/0.9');

src/Urlset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function generateXML(XMLWriter $XMLWriter)
5050

5151
$XMLWriter->writeAttribute('xsi:schemaLocation',
5252
'http://www.sitemaps.org/schemas/sitemap/0.9 ' .
53-
'http://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd');
53+
'https://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd');
5454

5555
$XMLWriter->writeAttribute('xmlns', 'http://www.sitemaps.org/schemas/sitemap/0.9');
5656

0 commit comments

Comments
 (0)