Setting Up Symfony 1.4 and Uploadify Session Id

Uploadify (currently on version 3.1.0) has the option to send the session name and id to the upload script so you can secure the action handling this in Symfony. But to make Symfony 1.4 use the session id send by Uploadify you have to create a new class that extends the sfSessionStorage class and use it for the session storage: Continue reading Setting Up Symfony 1.4 and Uploadify Session Id

Symfony2 Jobeet Day 9: The Functional Tests

Functional tests are a great tool to test your application from end to end: from the request made by a browser to the response sent by the server. They test all the layers of an application: the routing, the model, the actions, and the templates. They are very similar to what you probably already do manually: each time you add or modify an action, you need to go to the browser and check that everything works as expected by clicking on links and checking elements on the rendered page. In other words, you run a scenario corresponding to the use case you have just implemented. Continue reading Symfony2 Jobeet Day 9: The Functional Tests

Symfony2 Jobeet Day 8: The Unit Tests

Tests in Symfony2

There are two different kinds of automated tests in symfony: unit tests and functional tests. Unit tests verify that each method and function is working properly. Each test must be as independent as possible from the others. On the other hand, functional tests verify that the resulting application behaves correctly as a whole. Continue reading Symfony2 Jobeet Day 8: The Unit Tests