Skip to content

Sample application used for PHPUnit training.

Notifications You must be signed in to change notification settings

dholmes/bankaccount

 
 

Repository files navigation

NOT THE CODE YOU'RE LOOKING FOR

NOT THE REAL BankAccount, Go get it from the source: thePHP.cc

What?

See, I bought this book from Sebastian to get prepared for a demo I want to do tomorrow. But, my VM is running php 5.3 (and kind of needs to be because I'm using my "dev" vm). But, I need the tests to run, because it's a Jenkins demo. Well, yada, yada...this fork removes the traits and replaces them with extends.

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 https://localhost:80
Document root is /usr/local/src/bankaccount/htdocs
Press Ctrl-C to quit.

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

About

Sample application used for PHPUnit training.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%