I purchased the symfony book -- love it. We've upgraded a 0.6.3
project to 1.0 RC2 and after some minor fixes it seems to be running
like a champ. However...
After reading the chapter on testing I decided to go back and start
adding unit and functional tests to our project. Since it's a working
project, I'm starting with functional tests so that I can attempt
large refactorings and know when I've broken something. However, I
can't get the functional tests to work. They fail complaining of a
redeclaration of the truncate_text function in the TextHelper. Does
anyone else have this working? Any insights into something I might be
doing wrong?
Here are the details. I've created a test called armRecordTest.php.
After the functional bootstrap it consists of the following code:
----------------
$b = new sfTestBrowser();
$b->initialize();
$t = $b->test();
$t->diag('Entering functional test of record pages.');
// test loading a record page
$b->get('/en/media/443');
----------------
When I execute it using:
symfony test-functional frontend armRecord
I get the following output:
# Entering functional test of record pages.
# get /en/media/443
PHP Fatal error: Cannot redeclare truncate_text() (previously
declared in /usr/share/php/symfony/helper/TextHelper.php:26) in
/usr/share/php/symfony/helper/TextHelper.php on line 47
Fatal error: Cannot redeclare truncate_text() (previously declared in
/usr/share/php/symfony/helper/TextHelper.php:26) in
/usr/share/php/symfony/helper/TextHelper.php on line 47
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony developers" 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-devs?hl=en
-~----------~----~----~----~------~----~------~--~---