Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
881df18f
Commit
881df18f
authored
13 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Doxygen
parent
6f9d53df
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/phpunit/FactureTest.php
+24
-6
24 additions, 6 deletions
test/phpunit/FactureTest.php
with
24 additions
and
6 deletions
test/phpunit/FactureTest.php
+
24
−
6
View file @
881df18f
...
@@ -89,6 +89,9 @@ class FactureTest extends PHPUnit_Framework_TestCase
...
@@ -89,6 +89,9 @@ class FactureTest extends PHPUnit_Framework_TestCase
}
}
/**
/**
* Init phpunit tests
*
* @return void
*/
*/
protected
function
setUp
()
protected
function
setUp
()
{
{
...
@@ -100,14 +103,21 @@ class FactureTest extends PHPUnit_Framework_TestCase
...
@@ -100,14 +103,21 @@ class FactureTest extends PHPUnit_Framework_TestCase
print
__METHOD__
.
"
\n
"
;
print
__METHOD__
.
"
\n
"
;
}
}
/**
/**
* End phpunit tests
*
* @return void
*/
*/
protected
function
tearDown
()
protected
function
tearDown
()
{
{
print
__METHOD__
.
"
\n
"
;
print
__METHOD__
.
"
\n
"
;
}
}
/**
/**
* testFactureCreate
*
* @return int
*/
*/
public
function
testFactureCreate
()
public
function
testFactureCreate
()
{
{
...
@@ -127,6 +137,10 @@ class FactureTest extends PHPUnit_Framework_TestCase
...
@@ -127,6 +137,10 @@ class FactureTest extends PHPUnit_Framework_TestCase
}
}
/**
/**
* testFactureFetch
*
* @param int $id Id invoice
*
* @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
*/
*/
...
@@ -147,6 +161,10 @@ class FactureTest extends PHPUnit_Framework_TestCase
...
@@ -147,6 +161,10 @@ class FactureTest extends PHPUnit_Framework_TestCase
}
}
/**
/**
* testFactureFetch
*
* @param Object $localobject Invoice
*
* @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
*/
*/
...
@@ -252,11 +270,11 @@ class FactureTest extends PHPUnit_Framework_TestCase
...
@@ -252,11 +270,11 @@ class FactureTest extends PHPUnit_Framework_TestCase
/**
/**
* Compare all public properties values of 2 objects
* Compare all public properties values of 2 objects
*
*
* @param Object $oA Object operand 1
* @param Object $oA
Object operand 1
* @param Object $oB Object operand 2
* @param Object $oB
Object operand 2
* @param boolean $ignoretype False will not report diff if type of value differs
* @param boolean $ignoretype
False will not report diff if type of value differs
* @param array $fieldstoignore Array of fields to ignore in diff
* @param array $fieldstoignore
array
Array of fields to ignore in diff
* @return array Array with differences
* @return array
Array with differences
*/
*/
public
function
objCompare
(
$oA
,
$oB
,
$ignoretype
=
true
,
$fieldstoignorearray
=
array
(
'id'
))
public
function
objCompare
(
$oA
,
$oB
,
$ignoretype
=
true
,
$fieldstoignorearray
=
array
(
'id'
))
{
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment