dolibarr 21.0.0-alpha
MyObjectTest Class Reference

Class MyObjectTest. More...

Inheritance diagram for MyObjectTest:
Collaboration diagram for MyObjectTest:

Public Member Functions

 __construct ($name='')
 Constructor We save global variables into local variables.
 
 testSomething ()
 A sample test.
 
 testMyObjectCreate ()
 testMyObjectCreate
 
 testMyObjectDelete ($id)
 testMyObjectDelete
 

Static Public Member Functions

static setUpBeforeClass ()
 Global test setup.
 
static tearDownAfterClass ()
 Global test teardown.
 

Protected Member Functions

 setUp ()
 Unit test setup.
 
 tearDown ()
 Unit test teardown.
 

Detailed Description

Class MyObjectTest.

@backupGlobals disabled @backupStaticAttributes enabled

Remarks
backupGlobals must be disabled to have db,conf,user and lang not erased. @phan-file-suppress PhanCompatibleVoidTypePHP70

Definition at line 51 of file MyObjectTest.php.

Constructor & Destructor Documentation

◆ __construct()

MyObjectTest::__construct ( $name = '')

Constructor We save global variables into local variables.

Parameters
string$nameName

Definition at line 76 of file MyObjectTest.php.

Member Function Documentation

◆ setUp()

MyObjectTest::setUp ( )
protected

Unit test setup.

Returns
void No return value

Definition at line 110 of file MyObjectTest.php.

◆ setUpBeforeClass()

static MyObjectTest::setUpBeforeClass ( )
static

Global test setup.

Returns
void No return value

Definition at line 97 of file MyObjectTest.php.

◆ tearDown()

MyObjectTest::tearDown ( )
protected

Unit test teardown.

Returns
void No return value

Definition at line 126 of file MyObjectTest.php.

◆ tearDownAfterClass()

static MyObjectTest::tearDownAfterClass ( )
static

Global test teardown.

Returns
void No return value

Definition at line 136 of file MyObjectTest.php.

◆ testMyObjectCreate()

MyObjectTest::testMyObjectCreate ( )

testMyObjectCreate

Returns
int @phan-suppress PhanUndeclaredMethod

Definition at line 173 of file MyObjectTest.php.

◆ testMyObjectDelete()

MyObjectTest::testMyObjectDelete ( $id)

testMyObjectDelete

Parameters
int$idId of object
Returns
int

@depends testMyObjectCreate The depends says test is run only if previous is ok @phan-suppress PhanUndeclaredMethod

Definition at line 201 of file MyObjectTest.php.

References $id.

◆ testSomething()

MyObjectTest::testSomething ( )

A sample test.

Returns
bool @phan-suppress PhanUndeclaredMethod

Definition at line 151 of file MyObjectTest.php.


The documentation for this class was generated from the following file: