From 7508974cbb49825186933cbd5941b1ecd70153dd Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 21 Mar 2012 10:45:50 +0100 Subject: [PATCH] Fix: print log before the test --- test/phpunit/CategorieTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/phpunit/CategorieTest.php b/test/phpunit/CategorieTest.php index bdc362efe31..cb2e7bc2388 100755 --- a/test/phpunit/CategorieTest.php +++ b/test/phpunit/CategorieTest.php @@ -132,13 +132,13 @@ class CategorieTest extends PHPUnit_Framework_TestCase // We create category $result=$localobject->create($user); - $this->assertGreaterThan(0, $result); print __METHOD__." result=".$result."\n"; + $this->assertGreaterThan(0, $result); // We try to create same category again $result=$localobject->create($user); - $this->assertEquals(-4, $result); print __METHOD__." result=".$result."\n"; + $this->assertEquals(-4, $result); return $result; @@ -203,9 +203,9 @@ class CategorieTest extends PHPUnit_Framework_TestCase $localobject=new Categorie($this->savdb); $result=$localobject->fetch($id); - - $this->assertGreaterThan(0, $result); + print __METHOD__." id=".$id." result=".$result."\n"; + $this->assertGreaterThan(0, $result); return $localobject; }