• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
関西アンカンファレンス PHP ではじめるテストコード
 

関西アンカンファレンス PHP ではじめるテストコード

on

  • 3,837 views

関西アンカンファレンスの発表資料

関西アンカンファレンスの発表資料

Statistics

Views

Total Views
3,837
Views on SlideShare
3,752
Embed Views
85

Actions

Likes
2
Downloads
9
Comments
0

3 Embeds 85

http://d.hatena.ne.jp 74
http://www.slideshare.net 10
http://ss.dotbranch.com 1

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

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

関西アンカンファレンス PHP ではじめるテストコード 関西アンカンファレンス PHP ではじめるテストコード Presentation Transcript

  • PHP Kansai Unconference 2009/12/19 id:heavenshell
  • PHP lime Demo
  • PHP Zend Framework Python, Vim Java(Cubby ) http://twitter.com/heavenshell
  • PHP … assert
  • xUnit(PHPUnit) assert ※
  • PHP phpt PHP PEAR PHPUnit PHP xUnit SimpleTest CakePHP PHP4 lime Symfony
  • xUnit PHPUnit, SimpleTest CakePHP SimpleTest phpt lime xUnit PHPSpec rhaco DocTest lime
  • lime Symfony Project (Symfony ) http://trac.symfony-project.org/wiki/LimeTestingFramework xUnit assertEquals
  • <?php class Users { public function isLogin($user, $password) { // DB return $dao->auth($user, $password); } }
  • lime <?php require_once 'lime.php'; $t = new lime_test(null, new lime_output_color()); $user = new Users(); $ret = $user->isLogin('userid', 'password'); $t->ok($ret === true, ' true '); assertEquals $ php Login.php ok 1 - true 1..1
  • $t->ok(); // === $t->is(); // == $t->like(); // lime
  • Demo
  • lime PHPUnit SimpleTest PHPUnit lime
  • Google php lime PHP Test::More Lime http://d.hatena.ne.jp/studio-m/20081231/1230725644 lime http://d.hatena.ne.jp/anatoo/20090503/1241279965 TOM http://www.phppro.jp/school/test/
  • Piece Framework WAF Piece Project PHPUnit, SimpleTest, PHPSpec, phpt Stagehand_Testrunner Piece Project Make Good Eclipse JUnit Eclipse