Contenu connexe
Similaire à 関西アンカンファレンス PHP ではじめるテストコード (20)
関西アンカンファレンス PHP ではじめるテストコード
- 1. PHP
Kansai Unconference 2009/12/19
id:heavenshell
- 4. PHP
Zend Framework
Python, Vim Java(Cubby )
http://twitter.com/heavenshell
- 7. PHP
phpt
PHP PEAR
PHPUnit
PHP xUnit
SimpleTest
CakePHP PHP4
lime
Symfony
- 8. xUnit PHPUnit, SimpleTest
CakePHP SimpleTest
phpt lime xUnit
PHPSpec rhaco DocTest
lime
- 9. lime
Symfony Project
(Symfony )
http://trac.symfony-project.org/wiki/LimeTestingFramework
xUnit
assertEquals
- 10. <?php
class Users
{
public function isLogin($user, $password)
{
// DB
return $dao->auth($user, $password);
}
}
- 11. 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
- 14. lime
PHPUnit SimpleTest
PHPUnit
lime
- 15. 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/
- 16. Piece Framework WAF Piece
Project PHPUnit, SimpleTest, PHPSpec, phpt
Stagehand_Testrunner
Piece Project Make Good Eclipse
JUnit Eclipse