Removed all checkstyle errors into phpunit files

This commit is contained in:
Laurent Destailleur 2012-02-18 01:07:52 +01:00
parent 974daf5664
commit fc62b1c9c7
10 changed files with 124 additions and 56 deletions

View File

@ -126,8 +126,7 @@ class CMailFileTest extends PHPUnit_Framework_TestCase
$langs=$this->savlangs;
$db=$this->savdb;
$localobject=new CMailFile('Test','test@test.com','from@from.com',
'Message txt',array(),array(),array(),'','',1,0);
$localobject=new CMailFile('Test','test@test.com','from@from.com','Message txt',array(),array(),array(),'','',1,0);
$result=$localobject->sendfile();
print __METHOD__." result=".$result."\n";

View File

@ -116,7 +116,7 @@ class CommandeTest extends PHPUnit_Framework_TestCase
/**
* testCommandeCreate
*
*
* @return void
*/
public function testCommandeCreate()
@ -138,8 +138,10 @@ class CommandeTest extends PHPUnit_Framework_TestCase
/**
* testCommandeFetch
*
* @param int $id Id order
*
* @return Commande
*
* @depends testCommandeCreate
* The depends says test is run only if previous is ok
*/
@ -161,10 +163,10 @@ class CommandeTest extends PHPUnit_Framework_TestCase
/**
* testCommandeValid
*
*
* @param Object $localobject Order
* @return void
*
*
* @depends testCommandeFetch
* The depends says test is run only if previous is ok
*/
@ -185,10 +187,10 @@ class CommandeTest extends PHPUnit_Framework_TestCase
/**
* testCommandeCancel
*
* @param Object $localobject Order
*
* @param Object $localobject Order
* @return void
*
*
* @depends testCommandeValid
* The depends says test is run only if previous is ok
*/
@ -209,10 +211,10 @@ class CommandeTest extends PHPUnit_Framework_TestCase
/**
* testCommandeOther
*
*
* @param Object $localobject Order
* @return void
*
*
* @depends testCommandeCancel
* The depends says test is run only if previous is ok
*/
@ -238,10 +240,10 @@ class CommandeTest extends PHPUnit_Framework_TestCase
/**
* testCommandeDelete
*
*
* @param int $id Id of order
* @return void
*
*
* @depends testCommandeOther
* The depends says test is run only if previous is ok
*/

View File

@ -116,7 +116,7 @@ class CompanyBankAccountTest extends PHPUnit_Framework_TestCase
/**
* testCompanyBankAccountCreate
*
*
* @return int
*/
public function testCompanyBankAccountCreate()
@ -138,10 +138,10 @@ class CompanyBankAccountTest extends PHPUnit_Framework_TestCase
/**
* testCompanyBankAccountFetch
*
*
* @param int $id Id of bank account
* @return void
*
*
* @depends testCompanyBankAccountCreate
* The depends says test is run only if previous is ok
*/
@ -163,9 +163,10 @@ class CompanyBankAccountTest extends PHPUnit_Framework_TestCase
/**
* testCompanyBankAccountUpdate
*
*
* @param Object $localobject Bank account object
*
* @return int
*
* @depends testCompanyBankAccountFetch
* The depends says test is run only if previous is ok
*/
@ -187,10 +188,10 @@ class CompanyBankAccountTest extends PHPUnit_Framework_TestCase
/**
* testCompanyBankAccountOther
*
*
* @param Object $localobject Bank account
* @return int
*
* @return int
*
* @depends testCompanyBankAccountFetch
* The depends says test is run only if previous is ok
*/

View File

@ -117,7 +117,7 @@ class ContactTest extends PHPUnit_Framework_TestCase
/**
* testContactCreate
*
*
* @return int
*/
public function testContactCreate()
@ -140,8 +140,9 @@ class ContactTest extends PHPUnit_Framework_TestCase
/**
* testContactFetch
*
* @param int Id of contact
*
* @param int $id Id of contact
* @return int
* @depends testContactCreate
* The depends says test is run only if previous is ok
*/
@ -163,6 +164,11 @@ class ContactTest extends PHPUnit_Framework_TestCase
}
/**
* testContactUpdate
*
* @param Contact $localobject Contact
* @return int
*
* @depends testContactFetch
* The depends says test is run only if previous is ok
*/
@ -244,6 +250,11 @@ class ContactTest extends PHPUnit_Framework_TestCase
}
/**
* testContactOther
*
* @param Contact $localobject Contact
* @return void
*
* @depends testContactUpdate
* The depends says test is run only if previous is ok
*/
@ -273,6 +284,11 @@ class ContactTest extends PHPUnit_Framework_TestCase
}
/**
* testContactDelete
*
* @param int $id Id of contact
* @return void
*
* @depends testContactOther
* The depends says test is run only if previous is ok
*/
@ -295,6 +311,9 @@ class ContactTest extends PHPUnit_Framework_TestCase
}
/**
* testContactStatic
*
* @return void
*/
public function testContactStatic()
{

View File

@ -115,7 +115,7 @@ class ContratTest extends PHPUnit_Framework_TestCase
/**
* testContratCreate
*
*
* @return int
*/
public function testContratCreate()
@ -138,10 +138,10 @@ class ContratTest extends PHPUnit_Framework_TestCase
/**
* testContratFetch
*
*
* @param int $id Id of contract
* @return int
*
*
* @depends testContratCreate
* The depends says test is run only if previous is ok
*/
@ -164,10 +164,10 @@ class ContratTest extends PHPUnit_Framework_TestCase
/**
* testContratValid
*
* @param int $id Id of contract
*
* @param Contrat $localobject Contract
* @return int
*
*
* @depends testContratFetch
* The depends says test is run only if previous is ok
*/
@ -188,10 +188,10 @@ class ContratTest extends PHPUnit_Framework_TestCase
/**
* testContratValid
*
*
* @param Object $localobject Object contract
* @return int
*
*
* @depends testContratValid
* The depends says test is run only if previous is ok
*/
@ -217,10 +217,10 @@ class ContratTest extends PHPUnit_Framework_TestCase
/**
* testContratDelete
*
*
* @param int $id Id of contract
* @return int
*
*
* @depends testContratOther
* The depends says test is run only if previous is ok
*/

View File

@ -116,7 +116,7 @@ class DiscountTest extends PHPUnit_Framework_TestCase
/**
* testDiscountCreate
*
*
* @return int
*/
public function testDiscountCreate()
@ -138,10 +138,10 @@ class DiscountTest extends PHPUnit_Framework_TestCase
/**
* testDiscountFetch
*
*
* @param int $id Id of discount
* @return int
*
*
* @depends testDiscountCreate
* The depends says test is run only if previous is ok
*/
@ -163,9 +163,10 @@ class DiscountTest extends PHPUnit_Framework_TestCase
/**
* testDiscountDelete
*
*
* @param int $id Id of discount
*
* @return int
*
* @depends testDiscountFetch
* The depends says test is run only if previous is ok
*/

View File

@ -114,6 +114,9 @@ class FactureFournisseurTest extends PHPUnit_Framework_TestCase
}
/**
* testFactureFournisseurCreate
*
* @return int
*/
public function testFactureFournisseurCreate()
{
@ -133,6 +136,11 @@ class FactureFournisseurTest extends PHPUnit_Framework_TestCase
}
/**
* testFactureFournisseurFetch
*
* @param int $id If supplier invoice
* @return void
*
* @depends testFactureFournisseurCreate
* The depends says test is run only if previous is ok
*/
@ -153,6 +161,11 @@ class FactureFournisseurTest extends PHPUnit_Framework_TestCase
}
/**
* testFactureFournisseurUpdate
*
* @param Object $localobject Supplier invoice
* @return int
*
* @depends testFactureFournisseurFetch
* The depends says test is run only if previous is ok
*/
@ -173,6 +186,11 @@ class FactureFournisseurTest extends PHPUnit_Framework_TestCase
}
/**
* testFactureFournisseurValid
*
* @param Object $localobject Supplier invoice
* @return void
*
* @depends testFactureFournisseurUpdate
* The depends says test is run only if previous is ok
*/
@ -192,6 +210,11 @@ class FactureFournisseurTest extends PHPUnit_Framework_TestCase
}
/**
* testFactureFournisseurOther
*
* @param Object $localobject Supplier invoice
* @return void
*
* @depends testFactureFournisseurValid
* The depends says test is run only if previous is ok
*/
@ -216,6 +239,11 @@ class FactureFournisseurTest extends PHPUnit_Framework_TestCase
}
/**
* testFactureFournisseurDelete
*
* @param int $id Id of supplier invoice
* @return void
*
* @depends testFactureFournisseurOther
* The depends says test is run only if previous is ok
*/

View File

@ -140,6 +140,7 @@ class FactureTest extends PHPUnit_Framework_TestCase
* testFactureFetch
*
* @param int $id Id invoice
* @return int
*
* @depends testFactureCreate
* The depends says test is run only if previous is ok
@ -164,6 +165,7 @@ class FactureTest extends PHPUnit_Framework_TestCase
* testFactureFetch
*
* @param Object $localobject Invoice
* @return int
*
* @depends testFactureFetch
* The depends says test is run only if previous is ok
@ -185,6 +187,11 @@ class FactureTest extends PHPUnit_Framework_TestCase
}
/**
* testFactureValid
*
* @param Object $localobject Invoice
* @return void
*
* @depends testFactureUpdate
* The depends says test is run only if previous is ok
*/
@ -211,6 +218,11 @@ class FactureTest extends PHPUnit_Framework_TestCase
}
/**
* testFactureOther
*
* @param Object $localobject Invoice
* @return int
*
* @depends testFactureValid
* The depends says test is run only if previous is ok
*/
@ -235,6 +247,11 @@ class FactureTest extends PHPUnit_Framework_TestCase
}
/**
* testFactureDelete
*
* @param int $id Id of invoice
* @return int
*
* @depends testFactureOther
* The depends says test is run only if previous is ok
*/

View File

@ -142,9 +142,10 @@ class ProductTest extends PHPUnit_Framework_TestCase
/**
* testProductFetch
*
* @param int $id Id product
*
*
* @param int $id Id product
* @return Product
*
* @depends testProductCreate
* The depends says test is run only if previous is ok
*/
@ -166,10 +167,10 @@ class ProductTest extends PHPUnit_Framework_TestCase
/**
* testProductUpdate
*
*
* @param Product $localobject Product
* @return void
*
*
* @depends testProductFetch
* The depends says test is run only if previous is ok
*/
@ -191,10 +192,10 @@ class ProductTest extends PHPUnit_Framework_TestCase
/**
* testProductOther
*
*
* @param Product $localobject Product
* @return void
*
*
* @depends testProductUpdate
* The depends says test is run only if previous is ok
*/
@ -212,10 +213,10 @@ class ProductTest extends PHPUnit_Framework_TestCase
/**
* testProductDelete
*
*
* @param int $id Id of product
* @return void
*
*
* @depends testProductOther
* The depends says test is run only if previous is ok
*/
@ -239,7 +240,7 @@ class ProductTest extends PHPUnit_Framework_TestCase
/**
* testProductStatic
*
*
* @return void
*/
public function testProductStatic()

View File

@ -116,7 +116,7 @@ class UserTest extends PHPUnit_Framework_TestCase
/**
* testUserCreate
*
*
* @return void
*/
public function testUserCreate()
@ -138,7 +138,7 @@ class UserTest extends PHPUnit_Framework_TestCase
/**
* testUserFetch
*
*
* @param int $id Id of user
* @return void
* @depends testUserCreate
@ -162,7 +162,7 @@ class UserTest extends PHPUnit_Framework_TestCase
/**
* testUserUpdate
*
*
* @param Object $localobject User
* @return void
* @depends testUserFetch
@ -186,7 +186,7 @@ class UserTest extends PHPUnit_Framework_TestCase
/**
* testUserDisable
*
*
* @param Object $localobject User
* @return void
* @depends testUserUpdate
@ -209,7 +209,7 @@ class UserTest extends PHPUnit_Framework_TestCase
/**
* testUserOther
*
*
* @param Object $localobject User
* @return void
* @depends testUserDisable
@ -237,8 +237,8 @@ class UserTest extends PHPUnit_Framework_TestCase
/**
* testUserDelete
*
* @param Object $localobject User
*
* @param Object $id User
* @return void
* @depends testUserOther
* The depends says test is run only if previous is ok