Discussion of testing theory and practice, including methodologies (such as TDD, BDD, DDD, Agile, XP) and software - anything to do with testing goes here. (Formerly "The Testing Side of Development")
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
is there anything wrong in the code? I also want to know, if i change the function name test_insert(), it does not work. If i want to write a new function, what should i do?
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
All test case methods must start with the word "test..." so if you remove the initial 4 letters it won't run. You can add your own functions but you'll have to call them manually. If you're testing something make a new method like "testSomethingElse()". I'm sure this will be covered in the PHPUnit documentation/cookbook
kpraman, please try to make a slightly more descriptive subject line next time, and also please start using the highlighting tags. If you don't know what they are or how they work, follow the links that have been added to your post above by JayBird.