Hi,

I have a strange problem with unit test on symfony 1.3. If l execute  
the command "symfony unit:test" with no param, i have all tests with  
dubious result. If i test one by one, all tests is OK (log bellow).

Why ?

Thank you for your help.

Bertrand


./symfony test:unit

pictureMonthModelTest 
................................................dubious
     Test returned status 255
     Failed tests: 0
toolTest 
.............................................................dubious
     Test returned status 255
     Failed tests: 0
Failed Test                     Stat  Total   Fail  List of Failed
------------------------------------------------------------------
pictureMonthModelTest            255      1      1  0
toolTest                         255      1      1  0
Failed 2/2 test scripts, 0.00% okay. 2/0 subtests failed, 0.00% okay.

-----------------------------------------------
TEST 1:
./symfony test:unit pictureMonthModel
1..7
# ->getLastPicture()
ok 1 - getLastMonth() return only 1 record
ok 2 - $record->getPublishedAt() return 2009-02-01
ok 3 - $record->getTitle() return Le castor de nos régions
# ->getAvailablePictures()
ok 4 - getAvailablePictures() return a doctrine collection
ok 5 - getAvailablePictures() return 3 records
ok 6 - $records[0]->getYear() return 2009
ok 7 - $records[0]->getTitle() return Le castor de nos régions
  Looks like everything went fine.

-----------------------------------------------
TEST 2:
./symfony test:unit tool
  1..12
  # providePictureMonthSlug
  ok 1 - set 2009-01-01 slug return janvier-2009
  ok 2 - set 2009-02-01 slug return fevrier-2009
  ok 3 - set 2009-03-01 slug return mars-2009
  ok 4 - set 2009-04-01 slug return avril-2009
  ok 5 - set 2009-05-01 slug return mai-2009
  ok 6 - set 2009-06-01 slug return juin-2009
  ok 7 - set 2009-07-01 slug return juillet-2009
  ok 8 - set 2009-08-01 slug return aout-2009
  ok 9 - set 2009-09-01 slug return septembre-2009
  ok 10 - set 2009-10-01 slug return octobre-2009
  ok 11 - set 2009-11-01 slug return novembre-2009
  ok 12 - set 2009-12-01 slug return decembre-2009
   Looks like everything went fine.



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to