Developing for Ubraa Garrizaldy Santos November 10 2007
Who Am I Garrizaldy Santos <ul><ul><li>Software Developer </li></ul></ul><ul><ul><li>PHP'ing since 4.10 </li></ul></ul><ul...
Outline <ul><li>Bootstrapping Ubraa   </li></ul><ul><ul><li>Test-Driven Development </li></ul></ul><ul><ul><ul><li>We'll d...
Outline <ul><ul><li>Coding Standard </li></ul></ul><ul><ul><li>Documentation </li></ul></ul><ul><ul><li>Version Control </...
Ubraa Introduction: Bootstrapping Ubraa <ul><li>Ubraa needs an Application class. In which our bootstrap file index.php wi...
Ubraa Introduction: Requirements <ul><ul><li>Write a class named Ubraa_Application that has two methods. </li></ul></ul><u...
Ubraa Introduction: Design <ul><ul><li>A bootstrapper has to take care of the consistent needs of every page of a web appl...
Ubraa The First Test <ul><li><?php require_once   'Ubraa_Application.php' ; class  testUbraa_Application  extends  PHPUnit...
Ubraa The First Test <ul><li><?php require_once 'Ubraa_Application.php'; class testUbraa_Application extends PHPUnit_Frame...
Ubraa The First Test <ul><li><?php class  Ubraa_Application { } </li></ul>
Ubraa The First Test <ul><li><?php require_once 'Ubraa_Application.php'; class testUbraa_Application extends PHPUnit_Frame...
Ubraa The First Test <ul><li>garrizaldy@desktop:/var/www/ubraa/tests/Ubraa$ phpunit  Ubraa_AllTests AllTests.php PHPUnit 3...
Ubraa Related Links <ul><ul><li>Zend Framework - http://framework.zend.com/ </li></ul></ul><ul><ul><li>PHPUnit - http://ww...
Thank you! Garrizaldy Santos [email_address]
Upcoming SlideShare
Loading in...5
×

Developing For Ubraa

442

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
442
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Developing For Ubraa

  1. 1. Developing for Ubraa Garrizaldy Santos November 10 2007
  2. 2. Who Am I Garrizaldy Santos <ul><ul><li>Software Developer </li></ul></ul><ul><ul><li>PHP'ing since 4.10 </li></ul></ul><ul><ul><li>Developer for Wingcast Inc. </li></ul></ul><ul><ul><li>Open Source Contributor </li></ul></ul>
  3. 3. Outline <ul><li>Bootstrapping Ubraa   </li></ul><ul><ul><li>Test-Driven Development </li></ul></ul><ul><ul><ul><li>We'll do something called Test-Driven Learning and introduce you to PHPUnit, the xUnit testing framework for PHP, while we discuss </li></ul></ul></ul><ul><ul><ul><ul><li>Object Oriented Programming </li></ul></ul></ul></ul><ul><ul><ul><ul><li>Good Design </li></ul></ul></ul></ul><ul><ul><ul><ul><li>Refactoring </li></ul></ul></ul></ul>
  4. 4. Outline <ul><ul><li>Coding Standard </li></ul></ul><ul><ul><li>Documentation </li></ul></ul><ul><ul><li>Version Control </li></ul></ul><ul><ul><li>Deployment Practices </li></ul></ul><ul><ul><li>More Testing! </li></ul></ul><ul><ul><li>Q&A, Interactive Session </li></ul></ul>
  5. 5. Ubraa Introduction: Bootstrapping Ubraa <ul><li>Ubraa needs an Application class. In which our bootstrap file index.php will be using. </li></ul><ul><ul><li>The class should initialize and sets resources that are needed. </li></ul></ul><ul><ul><li>The class should run the application. </li></ul></ul>
  6. 6. Ubraa Introduction: Requirements <ul><ul><li>Write a class named Ubraa_Application that has two methods. </li></ul></ul><ul><ul><ul><li>initialize() is called if the class is instantiated. </li></ul></ul></ul><ul><ul><ul><li>run() is called at the very end of the bootstrap file and send the response. </li></ul></ul></ul>
  7. 7. Ubraa Introduction: Design <ul><ul><li>A bootstrapper has to take care of the consistent needs of every page of a web application. </li></ul></ul><ul><ul><ul><li>Receives all dynamic requests for an application </li></ul></ul></ul><ul><ul><ul><li>Applies a template for application behavior that we can later extend. </li></ul></ul></ul><ul><ul><ul><li>It will allow us to later customize the functionality for each unique application. </li></ul></ul></ul>
  8. 8. Ubraa The First Test <ul><li><?php require_once 'Ubraa_Application.php' ; class testUbraa_Application extends PHPUnit_Framework_TestCase { } </li></ul>
  9. 9. Ubraa The First Test <ul><li><?php require_once 'Ubraa_Application.php'; class testUbraa_Application extends PHPUnit_Framework_TestCase {     public function testApplication()     {         $app = new Ubraa_Application(); } </li></ul>
  10. 10. Ubraa The First Test <ul><li><?php class Ubraa_Application { } </li></ul>
  11. 11. Ubraa The First Test <ul><li><?php require_once 'Ubraa_Application.php'; class testUbraa_Application extends PHPUnit_Framework_TestCase {     public function testApplication()     {         $app = new Ubraa_Application();         $this ->assertType( 'Ubraa_Application' , $app ); } </li></ul>
  12. 12. Ubraa The First Test <ul><li>garrizaldy@desktop:/var/www/ubraa/tests/Ubraa$ phpunit  Ubraa_AllTests AllTests.php PHPUnit 3.1.9 by Sebastian Bergmann. . Time: 0 seconds OK (1 test) garrizaldy@desktop:/var/www/ubraa/tests/Ubraa$ </li></ul>
  13. 13. Ubraa Related Links <ul><ul><li>Zend Framework - http://framework.zend.com/ </li></ul></ul><ul><ul><li>PHPUnit - http://www.phpunit.de/ </li></ul></ul><ul><ul><li>SimpleTest - http://simpletest.org/ </li></ul></ul><ul><ul><li>Automatic testing of MVC applications created with Zend Framework | Alex @ Net </li></ul></ul><ul><li>More TDD: </li></ul><ul><ul><li>Zend_Application </li></ul></ul>
  14. 14. Thank you! Garrizaldy Santos [email_address]
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×