CakePHPのWebTestCaseでfixtureを使う

2,585 views
2,542 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,585
On SlideShare
0
From Embeds
0
Number of Embeds
220
Actions
Shares
0
Downloads
6
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

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

×