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,26 +1,29 @@
<?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\Xmppclient;
/** Test the domframework xmppclient part */
/**
* Test the domframework xmppclient part
*/
class xmppclientTest extends \PHPUnit_Framework_TestCase
{
public function test_connection_BADNAME()
public function testConnectionBADNAME()
{
$this->expectException("Exception");
$xmppclient = new Xmppclient();
$res = $xmppclient->connect("NOTFOUND.fournier38.fr", 5222, "", "");
}
public function test_connection_authenticate_1()
public function testConnectionAuthenticate1()
{
$xmppclient = new Xmppclient();
$res = $xmppclient->connect(
@@ -32,7 +35,7 @@ class xmppclientTest extends \PHPUnit_Framework_TestCase
$this->assertSame(is_object($res), true);
}
public function test_connection_disco_1()
public function testConnectionDisco1()
{
$xmppclient = new Xmppclient();
$xmppclient->connect(
@@ -45,7 +48,7 @@ class xmppclientTest extends \PHPUnit_Framework_TestCase
$this->assertSame(is_array($res) && count($res) > 5, true);
}
public function test_connection_sendMessage_1()
public function testConnectionSendMessage1()
{
$xmppclient = new Xmppclient();
$xmppclient->connect(
@@ -61,7 +64,7 @@ class xmppclientTest extends \PHPUnit_Framework_TestCase
$this->assertSame(is_object($res), true);
}
public function test_connection_sendMessage_2()
public function testConnectionSendMessage2()
{
$xmppclient = new Xmppclient();
$xmppclient->connect(