CakePHP
WebTestCase

fixture
Using fixture at WebTestCase of CakePHP.
CakePHP

       2005
       RonR


CakePHP enables PHP users at all
levels to rapidly develop robust
web applications.
WebTestCase
               CakePHP


               SimpleTest


The JWebUnit style functionality is more
complete now. It...
WebTestCase

                         PHP
     URL


                 URL           Test   Test
           Web


         ...
fixture




          (   )
fixture

              Database



                  Test
                  Case
Test
Suite
              Database
CakePHP


     fixture
CakePHP + WebTestCase
= CakeWebTestCase
class CakeWebTestCase
   extends WebTestCase
{
}
CookBook

SimpleTest WebTestCase




     fixture
=
DB
           DB




database.php
=
UnitTest
Cake
cake_test_case.php
fixturable_web_base_test_case.php

              CakeTest
 FixturableWebBaseTest

FixturableWebTestCase...
tmp/tests




UserAgent

HTTP
            DEBUG>0
CakePHPのWebTestCaseでfixtureを使う
CakePHPのWebTestCaseでfixtureを使う
CakePHPのWebTestCaseでfixtureを使う
CakePHPのWebTestCaseでfixtureを使う
CakePHPのWebTestCaseでfixtureを使う
CakePHPのWebTestCaseでfixtureを使う
CakePHPのWebTestCaseでfixtureを使う
CakePHPのWebTestCaseでfixtureを使う
Upcoming SlideShare
Loading in …5
×

CakePHPのWebTestCaseでfixtureを使う

2,668 views

Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

CakePHPのWebTestCaseでfixtureを使う

  1. 1. CakePHP WebTestCase fixture Using fixture at WebTestCase of CakePHP.
  2. 2. CakePHP 2005 RonR CakePHP enables PHP users at all levels to rapidly develop robust web applications.
  3. 3. WebTestCase CakePHP SimpleTest The JWebUnit style functionality is more complete now. It has support for SSL, forms, frames, proxies and basic authentication. The idea is that common but fiddly PHP tasks, such as logging into a site, can be tested easily.
  4. 4. WebTestCase PHP URL URL Test Test Web HTML
  5. 5. fixture ( )
  6. 6. fixture Database Test Case Test Suite Database
  7. 7. CakePHP fixture
  8. 8. CakePHP + WebTestCase
  9. 9. = CakeWebTestCase
  10. 10. class CakeWebTestCase extends WebTestCase { }
  11. 11. CookBook SimpleTest WebTestCase fixture
  12. 12. =
  13. 13. DB DB database.php
  14. 14. =
  15. 15. UnitTest
  16. 16. Cake
  17. 17. cake_test_case.php fixturable_web_base_test_case.php CakeTest FixturableWebBaseTest FixturableWebTestCase bootstrap
  18. 18. tmp/tests UserAgent HTTP DEBUG>0

×