Built-in Server
$ php -S localhost:8000
PHP 5.4.0 Development Server started…
Listening on localhost:8000
Document root is /home/ben/htdocs
Press Ctrl-C to quit
Composer
$client =
new Services_Twilio($sid, $tkn);
$client->account
->messages
->sendMessage(…)
Slide 77
Slide 77 text
Unit Testing
Slide 78
Slide 78 text
No content
Slide 79
Slide 79 text
Unit Testing
PHPUnit
Behat
Mink
Selenium
CodeCeption
PHPSpec
Slide 80
Slide 80 text
Unit Testing
class ApiAuthTest extends PHPUnit_Framework_TestCase {
public function testVerify() {
$auth = new apiAuth();
$this->assertTrue($auth->verify());
Slide 81
Slide 81 text
Unit Testing
class ApiAuthTest extends PHPUnit_Framework_TestCase {
public function testVerify() {
$auth = new apiAuth();
$this->assertTrue($auth->verify());
Slide 82
Slide 82 text
Unit Testing
$ phpunit tests
PHPUnit 3.3.17 by Sebastian Bergmann.
Time: 0.01 seconds
OK (1 tests, 1 assertions)
Slide 83
Slide 83 text
Resources
Slide 84
Slide 84 text
No content
Slide 85
Slide 85 text
Resources
PHP.net
Slide 86
Slide 86 text
Resources
Modern Frameworks
Laravel
Symfony2
Fuel PHP
SlimPHP 2
Aura for PHP
Silex