Tests are now compliant with php-cs-fixer (CamelCase for method, phpdoc valid)

This commit is contained in:
2023-04-13 22:22:46 +02:00
parent b017700d0a
commit 273db5f183
51 changed files with 3926 additions and 3637 deletions

View File

@@ -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(