Commit 3a586e93 authored by Fabien Potencier's avatar Fabien Potencier

merged branch brtriver/testing-doc (PR #96)

Commits
-------

9868077b deleted: empty lines.
45fe9df2 fixed: changed note.
bb8f1d2d updated: modified testing.rst

Discussion
----------

updated: modified testing.rst

ref #95

---------------------------------------------------------------------------

by igorw at 2011/05/19 09:25:34 -0700

Not quite sure what you mean by "If you want to test single file app use Symfony2's Reqeuest instead.", mind to explain / rephrase?

---------------------------------------------------------------------------

by brtriver at 2011/05/19 10:27:37 -0700

How about this?

> If you want to test a single file app, it is difficult to test because it doesn't return the instance of your application.
> to make your application testable with WebTestCase, you need to make sure you follow "Reusing applications" instructions from :doc:`usage`.

---------------------------------------------------------------------------

by igorw at 2011/05/19 10:38:15 -0700

I think the original sentence is quite explanatory, just turning that into a note seems sufficient to me.

---------------------------------------------------------------------------

by brtriver at 2011/05/19 10:44:32 -0700

I just set the original sentense to a note.

---------------------------------------------------------------------------

by igorw at 2011/05/19 10:53:24 -0700

Alright, thanks!
parents 8897c362 9868077b
...@@ -73,8 +73,10 @@ use it by making your test extend it:: ...@@ -73,8 +73,10 @@ use it by making your test extend it::
... ...
} }
To make your application testable, you need to make sure you follow "Reusing .. note::
applications" instructions from :doc:`usage`.
To make your application testable, you need to make sure you follow "Reusing
applications" instructions from :doc:`usage`.
For your WebTestCase, you will have to implement a ``createApplication`` For your WebTestCase, you will have to implement a ``createApplication``
method, which returns your application. It will probably look like this:: method, which returns your application. It will probably look like this::
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment