fixed error

This commit is contained in:
Bernhard Posselt
2013-01-21 10:32:38 +01:00
parent 2af757e0c2
commit e92347d2de

View File

@@ -33,7 +33,8 @@ This class prints out all prenames of a person and is called by using:
.. code-block:: php
<?php
PersonController::listNames();
$controller = new PersonController();
$controller->listNames();
This looks like clean code until the first tests are written. **Tests are absolutely necessary in every application! Do not think that your app is too small to require them.** The code will eventuell grow bigger and will have to be refactored.