Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6785891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:10:52+00:00 2026-05-26T17:10:52+00:00

I would like to start using TDD in my PHP projects using Symfony 1.4

  • 0

I would like to start using TDD in my PHP projects using Symfony 1.4 framework. Writing unit tests for my classes in /lib directories is fairly stright forward. But my question is, what steps do you proceed developing your applications?

I mean specifically:

  1. Do you write tests for model classes as well? If yes, how?
  2. Do you write unit tests for controllers somehow, or do you use only functional tests?
  3. Using functional tests, how deeply do you go? Just checking 200 status code, or going through DOM? If so, how deeply?

I think, I’ve got a general idea of TDD and I really like the approach, but I’m struggling with an execution on MVC PHP project especially using Symfony 1.4.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T17:10:52+00:00Added an answer on May 26, 2026 at 5:10 pm
    1. I think the most important tests in TDD are the model classes tests, because the model classes should hold a maximum of code (you’re supposed to have fat models ands skinny controllers). This page recommends using lime for this, and I did it for some projects, but as PHPUnit is now the de facto standard (and is used in Symfony 2.0, I think you’d better go that way directly). You can achieve this by using this plugin : http://www.symfony-project.org/plugins/sfPhpunitPlugin
    2. I test controllers only through functional tests.
    3. Not very deep, but if I test a form, for instance, I make sure the modifications appear on the next page.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to start using the WCF Rest Starter Kit's HttpClient to build
I've been developing my first iPhone app part-time and would like to start using
I use the on-demand (hosted) version of FogBugz. I would like to start using
I would like start with .NET Micro Framework as my hobby project. What hardware
I have a webapplication that heavily uses JQuery. I would like to start using
I've been using MSTest so far for my unit-tests, and found that it would
I would like to start using vs 2010 for the IDE benefits. The problem
I would like to start using Google App Engine for java . But i
We would like to start using Google Cloud Storage as a persistent store for
I've been reading about HTML5 and would like to start using some of it,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.