dolibarr  20.0.0-alpha
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
MyObjectTest Class Reference

Class MyObjectTest. More...

Inheritance diagram for MyObjectTest:
Inheritance graph
[legend]
Collaboration diagram for MyObjectTest:
Collaboration graph
[legend]

Public Member Functions

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

Static Public Member Functions

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

Protected Member Functions

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

Detailed Description

Class MyObjectTest.

@backupGlobals disabled @backupStaticAttributes enabled

Remarks
backupGlobals must be disabled to have db,conf,user and lang not erased.

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 64 of file MyObjectTest.php.

Member Function Documentation

◆ setUp()

MyObjectTest::setUp ( )
protected

Unit test setup.

Returns
void

Definition at line 98 of file MyObjectTest.php.

◆ setUpBeforeClass()

static MyObjectTest::setUpBeforeClass ( )
static

Global test setup.

Returns
void

Definition at line 85 of file MyObjectTest.php.

◆ tearDown()

MyObjectTest::tearDown ( )
protected

Unit test teardown.

Returns
void

Definition at line 114 of file MyObjectTest.php.

◆ tearDownAfterClass()

static MyObjectTest::tearDownAfterClass ( )
static

Global test teardown.

Returns
void

Definition at line 124 of file MyObjectTest.php.

◆ testMyObjectCreate()

MyObjectTest::testMyObjectCreate ( )

testMyObjectCreate

Returns
int

Definition at line 159 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

Definition at line 186 of file MyObjectTest.php.

◆ testSomething()

MyObjectTest::testSomething ( )

A sample test.

Returns
bool

Definition at line 138 of file MyObjectTest.php.


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