Earlier today I introduced why and how we initially integrated the Symfony2
testing mechanism into symfony 1.X
: in order to make this piece of software as clean and evolvable as possible
I just isolated it and made a small repo on Github.
SfCcTesting – Symfony 1.X
Client-Crawler Testing – is a small library (2 classes
and a configuration file) which lets you write functional tests, in symfony 1.X,
a là Symfony2.
if you take a look at the repository’s README
you will find the basic instructions to start writing your tests: keep in mind
that – although it’s usable on old-school symfony projects (svn etc) – you
should install it with Git and manage dependencies and updates with
A PHPUnit functional test for symfony 1.X written thanks to SfCcTesting
The bootstrapSymfony() method, instead, includes the bootstrap for the symfony
application in the test environment; you are allowed to redefine the location
of the bootstrap in order not to force you to follow a unique directory
The bootstrapSymfony() method should be placed in a BaseWebTestCase of
our test suite:
A base class for boostrapping the symfony testing environment
It contains 160+ pages of content dedicated to securing web applications and improving your security awareness when building
web apps, with chapters ranging from explaining how to secure HTTP cookies with the right flags to understanding why it is
important to consider joining a bug bounty program.