Tests are now compliant with php-cs-fixer (CamelCase for method, phpdoc valid)
This commit is contained in:
@@ -1,21 +1,23 @@
|
||||
<?php
|
||||
|
||||
/** DomFramework - Tests
|
||||
* @package domframework
|
||||
* @author Dominique Fournier <dominique@fournier38.fr>
|
||||
* @license BSD
|
||||
*/
|
||||
/**
|
||||
* DomFramework - Tests
|
||||
* @package domframework
|
||||
* @author Dominique Fournier <dominique@fournier38.fr>
|
||||
* @license BSD
|
||||
*/
|
||||
|
||||
namespace Domframework\Tests;
|
||||
|
||||
use Domframework\Sitemap;
|
||||
|
||||
/** Test the Sitemap.php file
|
||||
*/
|
||||
/**
|
||||
* Test the Sitemap.php file
|
||||
*/
|
||||
class SitemapTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
// Empty Sitemap
|
||||
public function test_EmptySitemap_1()
|
||||
// Empty Sitemap
|
||||
public function testEmptySitemap1()
|
||||
{
|
||||
$sitemap = new Sitemap();
|
||||
$res = $sitemap->analyze("", "http://example.com");
|
||||
@@ -23,7 +25,7 @@ class SitemapTest extends \PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
// Empty Sitemap
|
||||
public function test_EmptySitemap_2()
|
||||
public function testEmptySitemap2()
|
||||
{
|
||||
$sitemap = new Sitemap();
|
||||
$res = $sitemap->analyze(" ", "http://example.com");
|
||||
@@ -31,7 +33,7 @@ class SitemapTest extends \PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
// Textual Sitemap
|
||||
public function test_TextualSitemap_1()
|
||||
public function testTextualSitemap1()
|
||||
{
|
||||
$sitemap = new Sitemap();
|
||||
$res = $sitemap->analyze("http://example.com", "http://example.com");
|
||||
@@ -41,7 +43,7 @@ class SitemapTest extends \PHPUnit_Framework_TestCase
|
||||
"sitemaps" => []]
|
||||
);
|
||||
}
|
||||
public function test_TextualSitemap_2()
|
||||
public function testTextualSitemap2()
|
||||
{
|
||||
$sitemap = new Sitemap();
|
||||
$res = $sitemap->analyze(
|
||||
@@ -56,7 +58,7 @@ class SitemapTest extends \PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
// XML Sitemap
|
||||
public function test_XMLSitemap_1()
|
||||
public function testXMLSitemap1()
|
||||
{
|
||||
$sitemap = new Sitemap();
|
||||
$res = $sitemap->analyze(
|
||||
@@ -84,7 +86,7 @@ class SitemapTest extends \PHPUnit_Framework_TestCase
|
||||
);
|
||||
}
|
||||
|
||||
public function test_XMLSitemap_2()
|
||||
public function testXMLSitemap2()
|
||||
{
|
||||
$sitemap = new Sitemap();
|
||||
$res = $sitemap->analyze(
|
||||
|
||||
Reference in New Issue
Block a user