• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Developing For Ubraa
 

Developing For Ubraa

on

  • 542 views

 

Statistics

Views

Total Views
542
Views on SlideShare
536
Embed Views
6

Actions

Likes
0
Downloads
0
Comments
0

1 Embed 6

http://www.linkedin.com 6

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Developing For Ubraa Developing For Ubraa Presentation Transcript

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