Archives


Master Symfony2 fundamentals

Be trained by SensioLabs experts (2 to 6 day sessions -- French or English).
trainings.sensiolabs.com

Symfony hosting done right

ServerGrove, outstanding support at the right price for your Symfony hosting needs.
servergrove.com

L'audit Qualité par SensioLabs

200 points de contrôle de votre applicatif web.
audit.sensiolabs.com

gravatar
Book preview: read the Unit Tests chapter
by Francois Zaninotto – January 17, 2007 – 17 comments

There have been many questions about unit and functional tests in symfony lately. These two great features are new in symfony 1.0, and unfortunately they were not documented until now.

You know that we spent the last months writing a complete guide for symfony that will be released in bookshops on January 29th. We also mentioned the fact that the content of this book would become the official symfony online documentation and be published in HTML on the same date.

You're probably curious to see if what we wrote in this book is really helpful and practical. So we decided to offer you a sample of the book, in PDF format, and that's precisely Chapter 15 about units and functional tests.

To read the sample chapter, call the secret phone number hidden on a page of the internet that you will find by googling GURSIKSO, and say the secret password, which is the name of the dog I had when I was a child. Or, if you are in a hurry, you can also click this link to download the chapter immediately.

If you like the preview, please consider ordering the whole book at amazon and mentioning it to your friends. We're very excited about the upcoming release, and our best hope is that the book helps you unleash the true power of the symfony framework.

Add a Comment

You must be connected to post a comment.

Comments RSS

  • gravatar
    #1 Michael Nolan said on the 2007/01/17 at 11:01
    Very nice. Unit Tests are one area I know absolutely nothing about so it will be brush up without having to wait the 2 months Amazon UK are currently estimating for delivery :-)
  • gravatar
    #2 Gnagno said on the 2007/01/17 at 11:41
    I think I will read the book on line, but anyway I will buy it to support you guys for your fantastic work :)
  • gravatar
    #3 roga said on the 2007/01/17 at 13:15
    I already ordered the book :)
  • gravatar
    #4 Tapiwa said on the 2007/01/17 at 14:50
    Hey Francois,

    Is there a table of contents available for the book yet, now that it is going to print?
  • gravatar
    #5 Tapiwa said on the 2007/01/17 at 14:57
    Forgot to ask ... When will Apress be releasing the book in the UK?

    Amazon.co.uk has Feb 2007, and I'm wondering whether it is worth the wait, or whether to order from Amazon.com
  • gravatar
    #6 François said on the 2007/01/17 at 16:12
    Tapiwa: we mentioned the Table of Contents on the "Happy New Year" post in this very blog, dated Jan 02.
  • gravatar
    #7 xiblack said on the 2007/01/18 at 02:13
    Read the whole chapter! Impressive!
    A lof of new features are now revealed in the book.

    BTW, I ordered it already
  • gravatar
    #8 aruban said on the 2007/01/18 at 02:49
    great, really great job !
    I pre-ordered it.
    I wish you a lot of sells !
    I wish us some translations one day ^^
  • gravatar
    #9 don hosek said on the 2007/01/18 at 20:12
    So, out of curiosity, why do we need to include the unit test bootstrap manually? It's a rather ugly bit of code to have to repeatedly pasted into our tests...
  • gravatar
    #10 east3rd said on the 2007/01/18 at 20:18
    The chapter looks great, though I can't help but wish for some more information and practical examples specifically on creating unit tests for the model. Keep up the great work though!
  • gravatar
    #11 François said on the 2007/01/18 at 20:29
    don: The ugly bit of code is there to allow you to call the unit tests without the symfony test-unit command, with just the php command.
  • gravatar
    #12 don hosek said on the 2007/01/18 at 20:29
    Typo alert: Page 326, the code at the end of the tip is missing a closing parenthesis. And you're missing a parenthesis for punctuation as well.

    I'd also argue that the code in the tip box is sufficiently complicated that it would have been an improvement to present the code displayed rather than in-line.
  • gravatar
    #13 Sebastian Bergmann said on the 2007/01/21 at 12:00
    Typo: "PhpUnit" should be "PHPUnit".
  • gravatar
    #14 Jonas Dübi said on the 2007/01/22 at 09:28
    When will it be delivered to switzerland? It would be great to get it as soon as possible.
  • gravatar
    #15 tuct said on the 2007/01/22 at 09:58
    i tried to call the secret phone number hidden on a page of the internet that i found by googling GURSIKSO, and said the secret password (the name of the dog I had when I was a child)

    but the guy denied to give me the right link!!
    what was the name of your dog Francois?
  • gravatar
    #16 yutewa00 said on the 2007/01/22 at 16:11
    already order it in beginning of december. I can't wait to read whole book :)
  • gravatar
    #17 cprior said on the 2007/01/22 at 20:14
    So tell me, how many of you tried http://www.symfony-project.com/uploads/assets/The_Definitive_Guide_to_Symfony_Chapter_14.pdf ?
    :)

    I did for sure! Like staying up the might before christmas to catch a glimpse of Santa Claus! :D