Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 669 Bytes

README.markdown

File metadata and controls

23 lines (15 loc) · 669 Bytes

BankAccount

Sample application used for PHPUnit training.

Disclaimer

This example code is no production code and should be used for educational purposes only.

Testing with PHP 5.4's Built-in Webserver

Start PHP 5.4's built-in webserver as shown below:

➜ sudo php -S localhost:80 -t htdocs htdocs/router.php

PHP 5.4.8-dev Development Server started at Thu Sep 13 13:22:15 2012
Listening on http://localhost:80
Document root is /usr/local/src/bankaccount/htdocs
Press Ctrl-C to quit.

Now you can access http://localhost/bankaccounts and http://localhost/bankaccount/id/1.