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; $langs=$this->savlangs;
$db=$this->savdb; $db=$this->savdb;
$localobject=new CMailFile('Test','test@test.com','from@from.com', $localobject=new CMailFile('Test','test@test.com','from@from.com','Message txt',array(),array(),array(),'','',1,0);
'Message txt',array(),array(),array(),'','',1,0);
$result=$localobject->sendfile(); $result=$localobject->sendfile();
print __METHOD__." result=".$result."\n"; print __METHOD__." result=".$result."\n";

View File

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

View File

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

View File

@ -117,7 +117,7 @@ class ContactTest extends PHPUnit_Framework_TestCase
/** /**
* testContactCreate * testContactCreate
* *
* @return int * @return int
*/ */
public function testContactCreate() public function testContactCreate()
@ -140,8 +140,9 @@ class ContactTest extends PHPUnit_Framework_TestCase
/** /**
* testContactFetch * testContactFetch
* *
* @param int Id of contact * @param int $id Id of contact
* @return int
* @depends testContactCreate * @depends testContactCreate
* The depends says test is run only if previous is ok * 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 * @depends testContactFetch
* The depends says test is run only if previous is ok * 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 * @depends testContactUpdate
* The depends says test is run only if previous is ok * 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 * @depends testContactOther
* The depends says test is run only if previous is ok * 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() public function testContactStatic()
{ {

View File

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

View File

@ -116,7 +116,7 @@ class DiscountTest extends PHPUnit_Framework_TestCase
/** /**
* testDiscountCreate * testDiscountCreate
* *
* @return int * @return int
*/ */
public function testDiscountCreate() public function testDiscountCreate()
@ -138,10 +138,10 @@ class DiscountTest extends PHPUnit_Framework_TestCase
/** /**
* testDiscountFetch * testDiscountFetch
* *
* @param int $id Id of discount * @param int $id Id of discount
* @return int * @return int
* *
* @depends testDiscountCreate * @depends testDiscountCreate
* The depends says test is run only if previous is ok * The depends says test is run only if previous is ok
*/ */
@ -163,9 +163,10 @@ class DiscountTest extends PHPUnit_Framework_TestCase
/** /**
* testDiscountDelete * testDiscountDelete
* *
* @param int $id Id of discount * @param int $id Id of discount
* * @return int
*
* @depends testDiscountFetch * @depends testDiscountFetch
* The depends says test is run only if previous is ok * 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() public function testFactureFournisseurCreate()
{ {
@ -133,6 +136,11 @@ class FactureFournisseurTest extends PHPUnit_Framework_TestCase
} }
/** /**
* testFactureFournisseurFetch
*
* @param int $id If supplier invoice
* @return void
*
* @depends testFactureFournisseurCreate * @depends testFactureFournisseurCreate
* The depends says test is run only if previous is ok * 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 * @depends testFactureFournisseurFetch
* The depends says test is run only if previous is ok * 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 * @depends testFactureFournisseurUpdate
* The depends says test is run only if previous is ok * 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 * @depends testFactureFournisseurValid
* The depends says test is run only if previous is ok * 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 * @depends testFactureFournisseurOther
* The depends says test is run only if previous is ok * The depends says test is run only if previous is ok
*/ */

View File

@ -140,6 +140,7 @@ class FactureTest extends PHPUnit_Framework_TestCase
* testFactureFetch * testFactureFetch
* *
* @param int $id Id invoice * @param int $id Id invoice
* @return int
* *
* @depends testFactureCreate * @depends testFactureCreate
* The depends says test is run only if previous is ok * The depends says test is run only if previous is ok
@ -164,6 +165,7 @@ class FactureTest extends PHPUnit_Framework_TestCase
* testFactureFetch * testFactureFetch
* *
* @param Object $localobject Invoice * @param Object $localobject Invoice
* @return int
* *
* @depends testFactureFetch * @depends testFactureFetch
* The depends says test is run only if previous is ok * 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 * @depends testFactureUpdate
* The depends says test is run only if previous is ok * 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 * @depends testFactureValid
* The depends says test is run only if previous is ok * 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 * @depends testFactureOther
* The depends says test is run only if previous is ok * The depends says test is run only if previous is ok
*/ */

View File

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

View File

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