Questions tagged [lime-unittest]

Lime is the default unit test framework for the Symphony PHP framework

10 questions
5
votes
3 answers

should one use phpunit or lime with symfony?

i just wonder, should one use symfony's lime or phpunit for testing? what are the pros and cons with each one? thanks
never_had_a_name
  • 90,630
  • 105
  • 267
  • 383
4
votes
2 answers

Which unit testing framework do you use for Symfony?

Which unit testing framework do you use for Symfony? Lime or PHPUnit? What are the pros and cons of using them?
3
votes
1 answer

lime vs phpunit

I don't see this answered any where on the web, amazingly. Unit tests in lime seem so much more simple to write than PHPUnit with all its extra boilerplate code. Are there any definitive reasons (besides "PHPUnit is the defacto standard") for…
Theodore R. Smith
  • 21,848
  • 12
  • 65
  • 91
3
votes
1 answer

Test that each page doesn't exceed allowed SQL count in Symfony?

I wish I could have an isSQLCountLessThan() function or something. $browser = new sfTestFunctional(new sfBrowser()); $browser ->get('/some/page') ->with('response')->begin() ->isStatusCode(200) // ... ->isSQLCountLessThan(20) //…
Denis Chmel
  • 780
  • 6
  • 11
2
votes
1 answer

How to set the userAgent in a functional Test?

I could not find any matching method in sfTestFunctional or sfBrowser to set the UserAgent string. Maybe it's not possible because it goes through php-cli?
2
votes
1 answer

Symfony Unit Testing and Excessive Memory Leaks?

We're currently having issues with memory leaks when using unit tests with Symfony 1.x to the magnitude of a decent number of tests eating 512MB of memory. Currently we've tried: Using a phpunit plugin Using lime Restricting the tests to a few…
Rob Olmos
  • 2,372
  • 15
  • 24
2
votes
2 answers

Searching for Lime parser generator grammar examples... Just cannot find any

I'm writing a messaging system for the users of our site, which implements segmentation to allow for individual messages to target dynamic segments of users. Because a given message's segment definition may contain multiple individual segment…
Andrew Plank
  • 942
  • 10
  • 22
1
vote
1 answer

How to run lime test in Symfony plugin?

I have a plugin in Symfony 1.4 and I have created for him some tests put them in ROOT/myPlugin/test/unit/MyTest.php The plugin was generated with sfTaskExtraPlugin. The content of MyTest.php is:
radu c
  • 4,138
  • 7
  • 30
  • 45
0
votes
1 answer

Symfony - Unit testing with Lime

I'm trying to write some unit tests in Lime but the list of valid test methods in the documentation seems to be rather limited: http://www.symfony-project.org/jobeet/1_4/Doctrine/en/08 I'm trying to write a number of tests which attempt to save a…
Dan
  • 3,041
  • 2
  • 17
  • 9
-1
votes
1 answer

It's possible to export a survey on LimeSurvey throug API (remote control)?

it's possible to export a survey on LimeSurvey by API? I found a command to import (import_survey) but not for import. Thanks!
Karmo
  • 383
  • 1
  • 3
  • 13