Comments on: New symfony plugin – sfPropelTestPlugin simplifies unit tests http://robrosenbaum.com/php/new-symfony-plugin-sfpropeltestplugin-simplifies-unit-tests/ PHP, JavaScript, and Other Things Wed, 25 Feb 2009 11:43:00 +0000 hourly 1 http://wordpress.org/?v=3.3.1 By: rafal http://robrosenbaum.com/php/new-symfony-plugin-sfpropeltestplugin-simplifies-unit-tests/comment-page-1/#comment-79 rafal Sat, 03 Nov 2007 08:43:17 +0000 http://robrosenbaum.com/symfony/new-symfony-plugin-sfpropeltestplugin-simplifies-unit-tests/#comment-79 Thanks Gabriel, I overrode teardown method and now it works as supposed :) Thanks Gabriel, I overrode teardown method and now it works as supposed :)

]]>
By: Gabriel Franco http://robrosenbaum.com/php/new-symfony-plugin-sfpropeltestplugin-simplifies-unit-tests/comment-page-1/#comment-78 Gabriel Franco Wed, 31 Oct 2007 20:42:47 +0000 http://robrosenbaum.com/symfony/new-symfony-plugin-sfpropeltestplugin-simplifies-unit-tests/#comment-78 Hello Ico, I had the same problem as you, the solution was to override the teardown method to clean the database after every test execution. Another problem I had also was with the propel-unit.php. I don't know if this is a real problem, but I just managed to make the plugin work changing the line 34 from: ,SF_ROOT_DIR.'/apps/theApp/lib' // Location myapp application to ,SF_ROOT_DIR.'/apps/'.SF_APP.'/lib' // Location myapp application After that the plugin worked really fine. Nice work Rob. Hello Ico,

I had the same problem as you, the solution was to override the teardown method to clean the database after every test execution.

Another problem I had also was with the propel-unit.php.

I don’t know if this is a real problem, but I just managed to make the plugin work changing the line 34 from:

,SF_ROOT_DIR.’/apps/theApp/lib’ // Location myapp application

to

,SF_ROOT_DIR.’/apps/’.SF_APP.’/lib’ // Location myapp application

After that the plugin worked really fine.

Nice work Rob.

]]>
By: rafal http://robrosenbaum.com/php/new-symfony-plugin-sfpropeltestplugin-simplifies-unit-tests/comment-page-1/#comment-76 rafal Sun, 28 Oct 2007 19:43:55 +0000 http://robrosenbaum.com/symfony/new-symfony-plugin-sfpropeltestplugin-simplifies-unit-tests/#comment-76 Hello Rob, I have similar problem to that mentioned in the previous post. Data should to be cleared before it is inserted on every test but it is not. Only first of test methods works because it is executed on empty database. What is more weird plugin worked before but has stopped recently and I have no idea why. I am interested if more people have similar problem and of course a solution :) Besides, great work :) Thx Hello Rob,

I have similar problem to that mentioned in the previous post. Data should to be cleared before it is inserted on every test but it is not. Only first of test methods works because it is executed on empty database. What is more weird plugin worked before but has stopped recently and I have no idea why. I am interested if more people have similar problem and of course a solution :)

Besides, great work :) Thx

]]>
By: ico http://robrosenbaum.com/php/new-symfony-plugin-sfpropeltestplugin-simplifies-unit-tests/comment-page-1/#comment-61 ico Mon, 24 Sep 2007 09:21:37 +0000 http://robrosenbaum.com/symfony/new-symfony-plugin-sfpropeltestplugin-simplifies-unit-tests/#comment-61 Hello Rob, Actually your plugin suppose to clear the data insert on every test, it inserts the data OK, but since they are never cleared, the properly constructed schema returned duplicated records and no more than the first test could be executed :) Hello Rob,

Actually your plugin suppose to clear the data insert on every test, it inserts the data OK, but since they are never cleared, the properly constructed schema returned duplicated records and no more than the first test could be executed :)

]]>
By: rpsblog.com » A week of symfony #37 (10->16 September 2007) http://robrosenbaum.com/php/new-symfony-plugin-sfpropeltestplugin-simplifies-unit-tests/comment-page-1/#comment-58 rpsblog.com » A week of symfony #37 (10->16 September 2007) Sun, 16 Sep 2007 22:53:28 +0000 http://robrosenbaum.com/symfony/new-symfony-plugin-sfpropeltestplugin-simplifies-unit-tests/#comment-58 [...] New symfony plugin - sfPropelTestPlugin simplifies unit tests [...] [...] New symfony plugin – sfPropelTestPlugin simplifies unit tests [...]

]]>