noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 01/01: Test unitaire avec PHPUNIT class_acc_a


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 01/01: Test unitaire avec PHPUNIT class_acc_account_ledger.php
Date: Mon, 03 Nov 2014 19:37:00 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit 91be6b5da737e986c9568dac9997be35e393c655
Author: Dany De Bontridder <address@hidden>
Date:   Mon Nov 3 20:36:33 2014 +0100

    Test unitaire avec PHPUNIT class_acc_account_ledger.php
---
 unit-test/include/class_acc_account_ledgerTest.php |   29 +++++--------------
 1 files changed, 8 insertions(+), 21 deletions(-)

diff --git a/unit-test/include/class_acc_account_ledgerTest.php 
b/unit-test/include/class_acc_account_ledgerTest.php
index e49e39e..a7b45c0 100644
--- a/unit-test/include/class_acc_account_ledgerTest.php
+++ b/unit-test/include/class_acc_account_ledgerTest.php
@@ -102,10 +102,8 @@ class Acc_Account_LedgerTest extends 
PHPUnit_Framework_TestCase
      */
     public function testLoad()
     {
-        // Remove the following lines when you implement this test.
-        $this->markTestIncomplete(
-                'This test has not been implemented yet.'
-        );
+        $this->object->load();
+        
     }
 
     /**
@@ -150,10 +148,7 @@ class Acc_Account_LedgerTest extends 
PHPUnit_Framework_TestCase
      */
     public function testIsTVA()
     {
-        // Remove the following lines when you implement this test.
-        $this->markTestIncomplete(
-                'This test has not been implemented yet.'
-        );
+        $this->assertTrue(false,'Doit être réécrit');
     }
 
     /**
@@ -162,17 +157,14 @@ class Acc_Account_LedgerTest extends 
PHPUnit_Framework_TestCase
      */
     public function testHtmlTable()
     {
-        // Remove the following lines when you implement this test.
-        $this->markTestIncomplete(
-                'This test has not been implemented yet.'
-        );
+       $this->assertTrue(true,'Ne peut être testé car vue HTML');
     }
     public function dataGet_amount_side()
     {
         return array (
             array(0,"="), 
-            array(1000,D),
-            array(-1000,C),
+            array(1000,'D'),
+            array(-1000,'C'),
         );
     }
     /**
@@ -192,9 +184,7 @@ class Acc_Account_LedgerTest extends 
PHPUnit_Framework_TestCase
     public function testHtmlTableHeader()
     {
         // Remove the following lines when you implement this test.
-        $this->markTestIncomplete(
-                'This test has not been implemented yet.'
-        );
+       $this->assertTrue(true,'Ne peut être testé car vue HTML');
     }
 
     /**
@@ -290,10 +280,7 @@ class Acc_Account_LedgerTest extends 
PHPUnit_Framework_TestCase
      */
     public function testTest_me()
     {
-        // Remove the following lines when you implement this test.
-        $this->markTestIncomplete(
-                'This test has not been implemented yet.'
-        );
+          $this->assertTrue(false,'Must be removed');
     }
 
 }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]