Major doxygen fix

This commit is contained in:
Laurent Destailleur 2020-05-03 22:47:43 +02:00
parent d27ccb0233
commit 4d6a45d491
89 changed files with 871 additions and 286 deletions

View File

@ -187,6 +187,13 @@
</properties>
</rule>
<!-- Check for duplicate class names -->
<!-- Disabled: We need this for dependency injection.
<rule ref="Generic.Classes.DuplicateClassName" />
-->
<!-- Rules from Squiz Standard -->
<rule ref="Squiz.WhiteSpace.ScopeClosingBrace.Indent" />
@ -222,23 +229,16 @@
</rule>
<rule ref="Squiz.Scope.MethodScope.Missing" />
<!-- Rules from PEAR Standard -->
<rule ref="PEAR.Classes.ClassDeclaration" />
<!-- Check for duplicate class names -->
<!-- <rule ref="Generic.Classes.DuplicateClassName" /> -->
<rule ref="PEAR.Commenting.ClassComment" />
<!-- TODO Remove this and fix reported errors -->
<rule ref="PEAR.Commenting.ClassComment.Missing">
<severity>0</severity>
</rule>
<rule ref="PEAR.Commenting.ClassComment.Missing" />
<rule ref="PEAR.Commenting.ClassComment.MissingTag">
<severity>0</severity>
</rule>
<rule ref="PEAR.Commenting.ClassComment.MissingTag" />
<rule ref="PEAR.Commenting.ClassComment.MissingAuthorTag">
<severity>0</severity>
@ -247,67 +247,38 @@
<rule ref="PEAR.Commenting.ClassComment.MissingCategoryTag">
<severity>0</severity>
</rule>
<rule ref="PEAR.Commenting.ClassComment.MissingLicenseTag">
<severity>0</severity>
</rule>
<rule ref="PEAR.Commenting.ClassComment.MissingLinkTag">
<severity>0</severity>
</rule>
<rule ref="PEAR.Commenting.ClassComment.MissingPackageTag">
<severity>0</severity>
</rule>
<!--
<rule ref="PEAR.Commenting.FileComment" />
<rule ref="PEAR.Commenting.FileComment.WrongStyle">
<severity>0</severity>
</rule>
<rule ref="PEAR.Commenting.FileComment.MissingVersion">
<severity>0</severity>
</rule>
<rule ref="PEAR.Commenting.FileComment.MissingTag">
<severity>0</severity>
</rule>
-->
<rule ref="PEAR.Commenting.FunctionComment" />
<rule ref="PEAR.Commenting.FunctionComment.Empty">
<severity>5</severity>
</rule>
<!--<rule ref="PEAR.Commenting.FunctionComment.MissingReturn">
<severity>0</severity>
</rule>-->
<!--<rule ref="PEAR.Commenting.FunctionComment.Missing">
<severity>0</severity>
</rule>-->
<rule ref="PEAR.Commenting.FunctionComment.Empty" />
<rule ref="PEAR.Commenting.FunctionComment.SpacingAfterParamType" />
<rule ref="PEAR.Commenting.FunctionComment.SpacingAfterParamName">
<severity>0</severity>
</rule>
<rule ref="PEAR.Commenting.FunctionComment.SpacingAfterParamType">
<severity>0</severity>
</rule>
<rule ref="PEAR.Commenting.FunctionComment.SpacingAfterParamName" />
<rule ref="PEAR.Commenting.FunctionComment.ReturnNotRequired">
<severity>0</severity>
</rule>
<rule ref="PEAR.Commenting.FunctionComment.ReturnNotRequired" />
<rule ref="PEAR.Commenting.FunctionComment.WrongStyle">
<severity>0</severity>
</rule>
<rule ref="PEAR.Commenting.FunctionComment.SpacingBeforeParamType">
<severity>0</severity>
</rule>
@ -344,6 +315,7 @@
<rule ref="PEAR.Files.IncludingFile.UseInclude">
<severity>0</severity>
</rule>
<!-- TODO Enable this test. We should use require for include in prior of include when out of if -->
<rule ref="PEAR.Files.IncludingFile.UseIncludeOnce">
<severity>0</severity>

View File

@ -979,7 +979,6 @@ class BOM extends CommonObject
*
* @return int 0 if OK, <>0 if KO (this function is used also by cron so only 0 is OK)
*/
//public function doScheduledJob($param1, $param2, ...)
public function doScheduledJob()
{
global $conf, $langs;

View File

@ -23,6 +23,10 @@
require_once DOL_DOCUMENT_ROOT.'/core/class/html.form.class.php';
/**
* Class to manage forms for categories
*/
class FormCategory extends Form
{
/**

View File

@ -32,6 +32,10 @@
require_once DOL_DOCUMENT_ROOT.'/core/class/html.form.class.php';
/**
* Class of forms component to manage companies
*/
class FormCompany extends Form
{

View File

@ -236,8 +236,11 @@ function GetRootPath()
return substr($sRealPath, 0, $position);
}
// Emulate the asp Server.mapPath function.
// given an url path return the physical directory that it corresponds to
/**
* Emulate the asp Server.mapPath function.
* @param string $path given an url path return the physical directory that it corresponds to
* @return string Path
*/
function Server_MapPath($path)
{
// This function is available only for Apache
@ -338,7 +341,12 @@ function GetCurrentFolder()
return $sCurrentFolder;
}
// Do a cleanup of the folder name to avoid possible problems
/**
* Do a cleanup of the folder name to avoid possible problems
*
* @param string $sNewFolderName Folder
* @return string Folder sanitized
*/
function SanitizeFolderName($sNewFolderName)
{
$sNewFolderName = stripslashes($sNewFolderName);
@ -349,7 +357,12 @@ function SanitizeFolderName($sNewFolderName)
return $sNewFolderName;
}
// Do a cleanup of the file name to avoid possible problems
/**
* Do a cleanup of the file name to avoid possible problems
*
* @param string $sNewFileName Folder
* @return string Folder sanitized
*/
function SanitizeFileName($sNewFileName)
{
global $Config;
@ -366,7 +379,15 @@ function SanitizeFileName($sNewFileName)
return $sNewFileName;
}
// This is the function that sends the results of the uploading process.
/**
* This is the function that sends the results of the uploading process.
*
* @param string $errorNumber errorNumber
* @param string $fileUrl fileUrl
* @param string $fileName fileName
* @param string $customMsg customMsg
* @return void
*/
function SendUploadResults($errorNumber, $fileUrl = '', $fileName = '', $customMsg = '')
{
// Minified version of the document.domain automatic fix script (#1919).

View File

@ -61,6 +61,9 @@ abstract class ModelePDFProduct extends CommonDocGenerator
}
}
/**
* Class template for classes of numbering product
*/
abstract class ModeleProductCode
{
/**
@ -97,7 +100,6 @@ abstract class ModeleProductCode
*/
public function getExample($langs)
{
$langs->load("bills");
return $langs->trans("NoExample");
}

View File

@ -772,7 +772,6 @@ class EcmFiles extends CommonObject
if (!empty($conf->dol_no_mouse_hover)) $notooltip = 1; // Force disable tooltips
$result = '';
$companylink = '';
$label = '<u>'.$langs->trans("MyModule").'</u>';
$label .= '<br>';
@ -867,6 +866,9 @@ class EcmFiles extends CommonObject
}
/**
* Class of an index line of a document
*/
class EcmfilesLine
{
/**

View File

@ -1,4 +1,6 @@
<?php
use Sabre\VObject\Recur\EventIterator\HandleRDateExpandTest;
/* Copyright (C) 2005 Marc Barilley / Ocebo <marc@ocebo.com>
* Copyright (C) 2005-2018 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2011 Regis Houssin <regis.houssin@inodbox.com>
@ -1185,8 +1187,13 @@ function migrate_contracts_date1($db, $langs, $conf)
print '</td></tr>';
}
/*
* Mise a jour date contrat avec date min effective mise en service si inferieur
/**
* Update contracts with date min real if service date is lower
*
* @param DoliDB $db Database handler
* @param Translate $langs Language
* @param Conf $conf Conf
* @return void
*/
function migrate_contracts_date2($db, $langs, $conf)
{

View File

@ -1047,10 +1047,10 @@ class MyObject extends CommonObject
/**
* Action executed by scheduler
* CAN BE A CRON TASK. In such a case, parameters come from the schedule job setup field 'Parameters'
* Use public function doScheduledJob($param1, $param2, ...) to get parameters
*
* @return int 0 if OK, <>0 if KO (this function is used also by cron so only 0 is OK)
*/
//public function doScheduledJob($param1, $param2, ...)
public function doScheduledJob()
{
global $conf, $langs;

View File

@ -1226,10 +1226,10 @@ class Mo extends CommonObject
/**
* Action executed by scheduler
* CAN BE A CRON TASK. In such a case, parameters come from the schedule job setup field 'Parameters'
* Use public function doScheduledJob($param1, $param2, ...) to get parameters
*
* @return int 0 if OK, <>0 if KO (this function is used also by cron so only 0 is OK)
*/
//public function doScheduledJob($param1, $param2, ...)
public function doScheduledJob()
{
global $conf, $langs;

View File

@ -1443,14 +1443,14 @@ class Product extends CommonObject
}
}
/*
* Sets an accountancy code for a product.
* Also calls PRODUCT_MODIFY trigger when modified
*
* @param string $type It can be 'buy', 'buy_intra', 'buy_export', 'sell', 'sell_intra' or 'sell_export'
* @param string $value Accountancy code
* @return int <0 KO >0 OK
*/
/**
* Sets an accountancy code for a product.
* Also calls PRODUCT_MODIFY trigger when modified
*
* @param string $type It can be 'buy', 'buy_intra', 'buy_export', 'sell', 'sell_intra' or 'sell_export'
* @param string $value Accountancy code
* @return int <0 KO >0 OK
*/
public function setAccountancyCode($type, $value)
{
global $user, $langs, $conf;

View File

@ -101,7 +101,7 @@ if (!empty($conf->global->MAIN_SEARCH_FORM_ON_HOME_AREAS)) // This is useles
foreach ($listofsearchfields as $key => $value)
{
if ($i == 0) print '<tr class="liste_titre"><td colspan="3">'.$langs->trans("Search").'</td></tr>';
print '<tr '.$bc[false].'>';
print '<tr class="oddeven">';
print '<td class="nowrap"><label for="'.$key.'">'.$langs->trans($value["text"]).'</label></td><td><input type="text" class="flat inputsearch" name="'.$key.'" id="'.$key.'" size="18"></td>';
if ($i == 0) print '<td rowspan="'.count($listofsearchfields).'"><input type="submit" value="'.$langs->trans("Search").'" class="button"></td>';
print '</tr>';
@ -201,7 +201,7 @@ if (!empty($conf->categorie->enabled) && !empty($conf->global->CATEGORY_GRAPHSTA
print '<div class="div-table-responsive-no-min">';
print '<table class="noborder centpercent">';
print '<tr class="liste_titre"><th colspan="2">'.$langs->trans("Categories").'</th></tr>';
print '<tr '.$bc[0].'><td class="center" colspan="2">';
print '<tr class="oddeven"><td class="center" colspan="2">';
$sql = "SELECT c.label, count(*) as nb";
$sql .= " FROM ".MAIN_DB_PREFIX."categorie_product as cs";
$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."categorie as c ON cs.fk_categorie = c.rowid";
@ -413,7 +413,7 @@ llxFooter();
$db->close();
/*
/**
* Print html activity for product type
*
* @param int $product_type Type of product
@ -422,7 +422,6 @@ $db->close();
function activitytrim($product_type)
{
global $conf, $langs, $db;
global $bc;
// We display the last 3 years
$yearofbegindate = date('Y', dol_time_plus_duree(time(), -3, "y"));

View File

@ -129,8 +129,8 @@ try {
));
}
/*
* generate payment response
/**
* Generate payment response
*
* @param \Stripe\PaymentIntent $intent PaymentIntent
* @return void

View File

@ -871,10 +871,12 @@ class Dolresource extends CommonObject
return $resources;
}
/*
/**
* Return an int number of resources linked to the element
*
* @return int
* @param string $element Element type
* @param int $element_id Element id
* @return int Nb of resources loaded
*/
public function fetchElementResources($element, $element_id)
{

View File

@ -20,24 +20,21 @@ class Diff
const DELETED = 1;
const INSERTED = 2;
/* Returns the diff for two strings. The return value is an array, each of
/**
* Returns the diff for two strings. The return value is an array, each of
* whose values is an array containing two values: a line (or character, if
* $compareCharacters is true), and one of the constants DIFF::UNMODIFIED (the
* line or character is in both strings), DIFF::DELETED (the line or character
* is only in the first string), and DIFF::INSERTED (the line or character is
* only in the second string). The parameters are:
*
* $string1 - the first string
* $string2 - the second string
* $compareCharacters - true to compare characters, and false to compare
* lines; this optional parameter defaults to false
* @param string $string1 First string
* @param string $string2 Second string
* @param string $compareCharacters true to compare characters, and false to compare lines; this optional parameter defaults to false
* @return array Array of diff
*/
public static function compare(
$string1,
$string2,
$compareCharacters = false
) {
public static function compare($string1, $string2, $compareCharacters = false)
{
// initialise the sequences and comparison start and end positions
$start = 0;
if ($compareCharacters) {
@ -90,12 +87,13 @@ class Diff
return $diff;
}
/* Returns the diff for two files. The parameters are:
/**
* Returns the diff for two files. The parameters are:
*
* $file1 - the path to the first file
* $file2 - the path to the second file
* $compareCharacters - true to compare characters, and false to compare
* lines; this optional parameter defaults to false
* @param string $file1 Path to the first file
* @param string $file2 Path to the second file
* @param boolean $compareCharacters true to compare characters, and false to compare lines; this optional parameter defaults to false
* @return array Array of diff
*/
public static function compareFiles(
$file1,
@ -111,23 +109,18 @@ class Diff
);
}
/* Returns the table of longest common subsequence lengths for the specified
* sequences. The parameters are:
/**
* Returns the table of longest common subsequence lengths for the specified sequences. The parameters are:
*
* $sequence1 - the first sequence
* $sequence2 - the second sequence
* $start - the starting index
* $end1 - the ending index for the first sequence
* $end2 - the ending index for the second sequence
* @param string $sequence1 the first sequence
* @param string $sequence2 the second sequence
* @param string $start the starting index
* @param string $end1 the ending index for the first sequence
* @param string $end2 the ending index for the second sequence
* @return array array of diff
*/
private static function computeTable(
$sequence1,
$sequence2,
$start,
$end1,
$end2
) {
private static function computeTable($sequence1, $sequence2, $start, $end1, $end2)
{
// determine the lengths to be compared
$length1 = $end1 - $start + 1;
$length2 = $end2 - $start + 1;
@ -156,21 +149,18 @@ class Diff
return $table;
}
/* Returns the partial diff for the specificed sequences, in reverse order.
* The parameters are:
/**
* Returns the partial diff for the specificed sequences, in reverse order.
* The parameters are:
*
* $table - the table returned by the computeTable function
* $sequence1 - the first sequence
* $sequence2 - the second sequence
* $start - the starting index
* @param string $table the table returned by the computeTable function
* @param string $sequence1 the first sequence
* @param string $sequence2 the second sequence
* @param string $start the starting index
* @return array array of diff
*/
private static function generatePartialDiff(
$table,
$sequence1,
$sequence2,
$start
) {
private static function generatePartialDiff($table, $sequence1, $sequence2, $start)
{
// initialise the diff
$diff = array();
@ -205,17 +195,17 @@ class Diff
return $diff;
}
/* Returns a diff as a string, where unmodified lines are prefixed by ' ',
/**
* Returns a diff as a string, where unmodified lines are prefixed by ' ',
* deletions are prefixed by '- ', and insertions are prefixed by '+ '. The
* parameters are:
*
* $diff - the diff array
* $separator - the separator between lines; this optional parameter defaults
* to "\n"
* @param array $diff the diff array
* @param string $separator the separator between lines; this optional parameter defaults to "\n"
* @return string String
*/
public static function toString($diff, $separator = "\n")
{
// initialise the string
$string = '';
@ -242,17 +232,17 @@ class Diff
return $string;
}
/* Returns a diff as an HTML string, where unmodified lines are contained
/**
* Returns a diff as an HTML string, where unmodified lines are contained
* within 'span' elements, deletions are contained within 'del' elements, and
* insertions are contained within 'ins' elements. The parameters are:
*
* $diff - the diff array
* $separator - the separator between lines; this optional parameter defaults
* to '<br>'
* @param string $diff the diff array
* @param string $separator the separator between lines; this optional parameter defaults to '<br>'
* @return string HTML string
*/
public static function toHTML($diff, $separator = '<br>')
{
// initialise the HTML
$html = '';
@ -283,17 +273,16 @@ class Diff
return $html;
}
/* Returns a diff as an HTML table. The parameters are:
/**
* Returns a diff as an HTML table. The parameters are:
*
* $diff - the diff array
* $indentation - indentation to add to every line of the generated HTML; this
* optional parameter defaults to ''
* $separator - the separator between lines; this optional parameter
* defaults to '<br>'
* @param string $diff the diff array
* @param string $indentation indentation to add to every line of the generated HTML; this optional parameter defaults to ''
* @param string $separator the separator between lines; this optional parameter defaults to '<br>'
* @return string HTML string
*/
public static function toTable($diff, $indentation = '', $separator = '<br>')
{
// initialise the HTML
$html = $indentation."<table class=\"diff\">\n";
@ -373,14 +362,16 @@ class Diff
return $html.$indentation."</table>\n";
}
/* Returns the content of the cell, for use in the toTable function. The
/**
* Returns the content of the cell, for use in the toTable function. The
* parameters are:
*
* $diff - the diff array
* $indentation - indentation to add to every line of the generated HTML
* $separator - the separator between lines
* $index - the current index, passes by reference
* $type - the type of line
* @param string $diff the diff array
* @param string $indentation indentation to add to every line of the generated HTML
* @param string $separator the separator between lines
* @param string $index the current index, passes by reference
* @param string $type the type of line
* @return string HTML string
*/
private static function getCellContent($diff, $indentation, $separator, &$index, $type)
{

View File

@ -137,7 +137,12 @@ $server->register(
// Full methods code
/**
* Full methods code
*
* @param string $authentication Authentication string
* @return array Array of data
*/
function getVersions($authentication)
{
global $db, $conf, $langs;

View File

@ -715,7 +715,6 @@ class Hook extends CommonObject
*
* @return int 0 if OK, <>0 if KO (this function is used also by cron so only 0 is OK)
*/
//public function doScheduledJob($param1, $param2, ...)
public function doScheduledJob()
{
global $conf, $langs;

View File

@ -73,7 +73,11 @@ class AccountingAccountTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -84,7 +88,11 @@ class AccountingAccountTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -73,7 +73,11 @@ class ActionCommTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -84,7 +88,11 @@ class ActionCommTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -75,7 +75,11 @@ class AdherentTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -91,7 +95,11 @@ class AdherentTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -73,7 +73,11 @@ class AdminLibTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -82,7 +86,11 @@ class AdminLibTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -74,7 +74,11 @@ class BOMTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -83,7 +87,11 @@ class BOMTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -75,7 +75,11 @@ class BankAccountTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -84,7 +88,11 @@ class BankAccountTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -103,7 +103,11 @@ class BuildDocTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -121,7 +125,11 @@ class BuildDocTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -73,7 +73,11 @@ class CMailFileTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -82,7 +86,11 @@ class CMailFileTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -74,7 +74,11 @@ class CategorieTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -83,7 +87,11 @@ class CategorieTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -74,7 +74,11 @@ class ChargeSocialesTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -83,7 +87,11 @@ class ChargeSocialesTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -86,7 +86,11 @@ class CodingPhpTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -95,7 +99,11 @@ class CodingPhpTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -86,7 +86,11 @@ class CodingSqlTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -95,7 +99,11 @@ class CodingSqlTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -75,7 +75,11 @@ class CommandeFournisseurTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -84,7 +88,11 @@ class CommandeFournisseurTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -73,7 +73,11 @@ class CommandeTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -84,7 +88,11 @@ class CommandeTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -73,7 +73,11 @@ class CommonInvoiceTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -82,7 +86,11 @@ class CommonInvoiceTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -74,7 +74,11 @@ class CommonObjectTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -83,7 +87,11 @@ class CommonObjectTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -74,7 +74,11 @@ class CompanyBankAccountTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -83,7 +87,11 @@ class CompanyBankAccountTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -73,7 +73,11 @@ class CompanyLibTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -82,7 +86,11 @@ class CompanyLibTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -82,7 +82,11 @@ class ContactTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -92,7 +96,11 @@ class ContactTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -74,7 +74,11 @@ class ContratTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -83,7 +87,11 @@ class ContratTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -76,7 +76,11 @@ class CoreTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -85,7 +89,11 @@ class CoreTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -74,7 +74,11 @@ class DateLibTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -83,7 +87,11 @@ class DateLibTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -74,7 +74,11 @@ class DateLibTzFranceTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -88,7 +92,11 @@ class DateLibTzFranceTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -74,7 +74,11 @@ class DiscountTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -83,7 +87,11 @@ class DiscountTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -74,7 +74,11 @@ class EntrepotTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -86,7 +90,11 @@ class EntrepotTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -74,7 +74,11 @@ class ExpenseReportTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -83,7 +87,11 @@ class ExpenseReportTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -78,7 +78,11 @@ class ExportTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -87,7 +91,11 @@ class ExportTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -75,7 +75,11 @@ class FactureFournisseurTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -84,7 +88,11 @@ class FactureFournisseurTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -75,7 +75,11 @@ class FactureRecTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -84,7 +88,11 @@ class FactureRecTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -74,7 +74,11 @@ class FactureTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -87,7 +91,11 @@ class FactureTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -74,7 +74,11 @@ class FactureTestRounding extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -83,7 +87,11 @@ class FactureTestRounding extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -74,7 +74,11 @@ class FichinterTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -83,7 +87,11 @@ class FichinterTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -75,7 +75,11 @@ class FilesLibTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -84,7 +88,11 @@ class FilesLibTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -74,7 +74,11 @@ class FormAdminTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -83,7 +87,11 @@ class FormAdminTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -74,7 +74,11 @@ class FormTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -83,7 +87,11 @@ class FormTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -77,7 +77,11 @@ class Functions2LibTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -86,7 +90,11 @@ class Functions2LibTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -77,7 +77,11 @@ class FunctionsLibTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -88,7 +92,11 @@ class FunctionsLibTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -75,7 +75,11 @@ class GetUrlLibTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -84,7 +88,11 @@ class GetUrlLibTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -76,7 +76,11 @@ class HolidayTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -86,7 +90,11 @@ class HolidayTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -75,7 +75,11 @@ class ImagesLibTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -84,7 +88,11 @@ class ImagesLibTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -76,7 +76,11 @@ class ImportTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -85,7 +89,11 @@ class ImportTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -76,7 +76,11 @@ class JsonLibTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -85,7 +89,11 @@ class JsonLibTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -86,7 +86,11 @@ class LangTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -95,7 +99,11 @@ class LangTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -86,7 +86,11 @@ class LesscTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -95,7 +99,11 @@ class LesscTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -74,7 +74,11 @@ class LoanTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -83,7 +87,11 @@ class LoanTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -74,7 +74,11 @@ class MarginsLibTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -83,7 +87,11 @@ class MarginsLibTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -73,7 +73,11 @@ class ModulesTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -82,7 +86,11 @@ class ModulesTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -76,7 +76,11 @@ class MouvementStockTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -85,7 +89,11 @@ class MouvementStockTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -73,7 +73,11 @@ class NumberingModulesTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -83,7 +87,11 @@ class NumberingModulesTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -75,7 +75,11 @@ class PaypalTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -87,7 +91,11 @@ class PaypalTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -77,7 +77,11 @@ class PdfDocTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -86,7 +90,11 @@ class PdfDocTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -76,7 +76,11 @@ class PgsqlTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -86,7 +90,11 @@ class PgsqlTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -81,7 +81,11 @@ class PricesTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -90,7 +94,11 @@ class PricesTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -74,7 +74,11 @@ class ProductTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -85,7 +89,12 @@ class ProductTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// teardownafterclass
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -75,7 +75,11 @@ class ProjectTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -84,7 +88,11 @@ class ProjectTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -74,7 +74,11 @@ class PropalTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -83,7 +87,11 @@ class PropalTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -76,7 +76,11 @@ class RestAPIDocumentTest extends PHPUnit\Framework\TestCase
echo "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -85,7 +89,11 @@ class RestAPIDocumentTest extends PHPUnit\Framework\TestCase
echo __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -80,7 +80,11 @@ class RestAPIUserTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -89,7 +93,11 @@ class RestAPIUserTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -86,7 +86,11 @@ class ScriptsTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -95,7 +99,11 @@ class ScriptsTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -86,7 +86,11 @@ class SecurityTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -95,7 +99,11 @@ class SecurityTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -74,7 +74,11 @@ class SocieteTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -88,7 +92,11 @@ class SocieteTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -77,7 +77,11 @@ class SupplierProposalTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -88,7 +92,11 @@ class SupplierProposalTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -74,7 +74,11 @@ class TicketTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -83,7 +87,11 @@ class TicketTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -73,7 +73,11 @@ class UserGroupTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -82,7 +86,11 @@ class UserGroupTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -73,7 +73,11 @@ class UserTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -85,7 +89,11 @@ class UserTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -73,7 +73,11 @@ class UtilsTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -83,7 +87,11 @@ class UtilsTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -77,7 +77,11 @@ class WebservicesOrdersTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -86,7 +90,11 @@ class WebservicesOrdersTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -77,7 +77,11 @@ class WebservicesOtherTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -86,7 +90,11 @@ class WebservicesOtherTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -84,7 +84,11 @@ class WebservicesProductsTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -92,7 +96,12 @@ class WebservicesProductsTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -94,7 +94,11 @@ class WebservicesThirdpartyTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -103,7 +107,11 @@ class WebservicesThirdpartyTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -77,7 +77,11 @@ class WebservicesUserTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -86,7 +90,11 @@ class WebservicesUserTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;

View File

@ -73,7 +73,11 @@ class XCalLibTest extends PHPUnit\Framework\TestCase
print "\n";
}
// Static methods
/**
* setUpBeforeClass
*
* @return void
*/
public static function setUpBeforeClass()
{
global $conf,$user,$langs,$db;
@ -82,7 +86,11 @@ class XCalLibTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
// tear down after class
/**
* tearDownAfterClass
*
* @return void
*/
public static function tearDownAfterClass()
{
global $conf,$user,$langs,$db;