cvs: presentations /slides/advanced EmailAddress.php Test_EmailAddress.php adv_what.xml pie_gates.jpg t_basic.xml t_golden.xml t_intro.xml t_unit.xml
t_unit_phpunit.xml t_unit_phpunit1.xml testing.jpg titlepage.xml

From: Date: Tue, 13 May 2003 03:32:26 +0000
Subject: cvs: presentations /slides/advanced EmailAddress.php Test_EmailAddress.php adv_what.xml pie_gates.jpg t_basic.xml t_golden.xml t_intro.xml t_unit.xml
t_unit_phpunit.xml t_unit_phpunit1.xml testing.jpg titlepage.xml
Groups: php.pres 
Request: Send a blank email to pres+get-708@lists.php.net to get a copy of this message
sterling Mon May 12 23:32:26 2003 EDT Added files: /presentations/slides/advanced EmailAddress.php Test_EmailAddress.php adv_what.xml pie_gates.jpg t_basic.xml t_golden.xml t_intro.xml t_unit.xml t_unit_phpunit.xml t_unit_phpunit1.xml testing.jpg titlepage.xml Log: add advanced slides for the new talk Index: presentations/slides/advanced/EmailAddress.php +++ presentations/slides/advanced/EmailAddress.php <?php class EmailAddress { public $user; public $host; function __construct($mail) { list($this->user, $this->host) = explode('@', $mail, 2); } } ?> Index: presentations/slides/advanced/Test_EmailAddress.php +++ presentations/slides/advanced/Test_EmailAddress.php <?php require_once('PHPUnit.php'); require_once('EmailAddress.php'); class Test_EmailAddress extends PHPUnit_TestCase { function Test_UserPart() { $email = new EmailAddress('sterling@php.net'); self::assertTrue($email->user == 'sterling'); } function Test_ServerPart() { $email = new EmailAddress('sterling@php.net'); self::assertTrue($email->host == 'php.net'); } } $suite = new PHPUnit_TestSuite(); $suite->addTest(new Test_EmailAddress('Test_UserPart')); $suite->addTest( new Test_EmailAddress('Test_ServerPart') ); $result = PHPUnit::run($suite); echo $result->toString(); ?> Index: presentations/slides/advanced/adv_what.xml +++ presentations/slides/advanced/adv_what.xml <slide title="What is Advanced PHP?"> <blurb><![CDATA[<br/>]]></blurb> <blurb align="center" fontsize="4.0em">~Developing Large Applications.~</blurb> <list marginleft="4.0em" fontsize="3.5em"> <bullet effect="slide">Testing &amp; Debugging</bullet> <bullet effect="slide">Documentation</bullet> <bullet effect="slide">Error Handling</bullet> <bullet effect="slide">Security</bullet> <bullet effect="slide">Performance</bullet> </list> </slide> Index: presentations/slides/advanced/t_basic.xml +++ presentations/slides/advanced/t_basic.xml <slide title="Basic Testing"> <image filename="testing.jpg" align="right"/> <blurb><![CDATA[<br/>]]></blurb> <list title="Methods"> <bullet>If it compiles, it works</bullet> <bullet>Click through the application</bullet> </list> <list title="Flaws"> <bullet fontsize="2.2em">Innumerable Race Conditions</bullet> <bullet fontsize="1.9em" type="none" marginleft="2.0em">~... High Concurrency~</bullet> <bullet fontsize="1.9em" type="none" marginleft="2.0em">~... Data Overflows~</bullet> <bullet fontsize="1.9em" type="none" marginleft="2.0em">~... Request Combinations~</bullet> <bullet fontsize="1.9em" type="none" marginleft="2.0em">~... Edge Cases~</bullet> </list> </slide> Index: presentations/slides/advanced/t_golden.xml +++ presentations/slides/advanced/t_golden.xml <slide title="The Golden Rule"> <image filename="testing.jpg" align="right"/> <blurb><![CDATA[<br/><br/><br/>]]></blurb> <image align="right" filename="pie_gates.jpg" marginright="4.0em"/> <blurb><![CDATA[<br/>]]></blurb> <blurb fontsize="5.0em" align="center" marginright="1.0em">~Nobody Cares If It Works For You.~</blurb> </slide> Index: presentations/slides/advanced/t_intro.xml +++ presentations/slides/advanced/t_intro.xml <slide title="What is testing?"> <image filename="testing.jpg" align="right"/> <blurb><![CDATA[<br/><br/>]]></blurb> <list marginleft="0.2em" fontsize="3.5em"> <bullet effect="slide">Assuring that your application works as it should.</bullet> <bullet effect="slide">~Ensuring that your application doesn't work as it shouldn't.~</bullet> </list> </slide> Index: presentations/slides/advanced/t_unit.xml +++ presentations/slides/advanced/t_unit.xml <slide title="Unit Testing"> <image filename="testing.jpg" align="right"/> <blurb><![CDATA[<br/><br/>]]></blurb> <list> <bullet>Testing Small Portions (~Units~) of Code</bullet> <bullet>Make Sure Nothing Breaks (~Regression Tests~)</bullet> <bullet>Write Your Tests</bullet> <bullet>Write The Code That Satisfies Those Tests</bullet> </list> </slide> Index: presentations/slides/advanced/t_unit_phpunit.xml +++ presentations/slides/advanced/t_unit_phpunit.xml <slide title="PHPUnit"> <image filename="testing.jpg" align="right"/> <blurb><![CDATA[<br/><br/>]]></blurb> <blurb>PHPUnit is a Unit Testing Suite written for PHP, modeled after %JUnit%.</blurb> <blurb> </blurb> <example title="Installing PHPUnit" type="shell"><![CDATA[% pear install PHPUnit]]></example> </slide> Index: presentations/slides/advanced/t_unit_phpunit1.xml +++ presentations/slides/advanced/t_unit_phpunit1.xml <slide title="Using PHPUnit"> <image filename="testing.jpg" align="right"/> <blurb fontsize="3.0em">Remember, Tests First!</blurb> <blurb><![CDATA[<br/>]]></blurb> <example filename="Test_EmailAddress.php" result="1" fontsize="1.5em"/> </slide> Index: presentations/slides/advanced/titlepage.xml +++ presentations/slides/advanced/titlepage.xml <slide fontsize="3.5em"> <title>Welcome!</title> <blurb> </blurb> <blurb align="center" fontsize="6.0em">Advanced PHP</blurb> <blurb align="center" fontsize="4.0em">O'Reilly Open Source Convention</blurb> <blurb align="center">July 7, 2003</blurb> <link align="center" leader="Sterling Hughes, " href="sterling@php.net"/> </slide>

« previous php.pres (#708) next »