LEADER 05580nam 2200721 450 001 9910458322303321 005 20200520144314.0 010 $a1-78328-344-0 035 $a(CKB)2550000001307916 035 $a(EBL)1674865 035 $a(SSID)ssj0001295146 035 $a(PQKBManifestationID)11731531 035 $a(PQKBTitleCode)TC0001295146 035 $a(PQKBWorkID)11337054 035 $a(PQKB)10037981 035 $a(MiAaPQ)EBC1674865 035 $a(CaSebORM)9781783283439 035 $a(PPN)228008581 035 $a(Au-PeEL)EBL1674865 035 $a(CaPaEBR)ebr10879007 035 $a(CaONFJC)MIL613602 035 $a(OCoLC)880826827 035 $a(EXLCZ)992550000001307916 100 $a20140615h20142014 uy 0 101 0 $aeng 135 $aur|n|---||||| 181 $ctxt 182 $cc 183 $acr 200 10$aPHPUnit essentials $eget started with PHPUnit and learn how to write and test code using advanced technologies /$fZdenek Machek ; cover image by Asher Wishkerman 205 $a1st edition 210 1$aBirmingham, England :$cPackt Publishing,$d2014. 210 4$dİ2014 215 $a1 online resource (314 p.) 225 1 $aCommunity Experience Distilled 300 $aIncludes index. 311 $a1-78328-343-2 311 $a1-306-82351-X 327 $aCover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Installing PHPUnit; Requirements; Running PHP from the command line; Composer - the dependency manager for PHP; Installing Composer; Installation; Local installation; System-wide installation; Installing PEAR; Installing PHPUnit; Other installation methods; Installing the Linux package; Manual installation; Testing the installation; Xdebug; Installing Xdebug; Summary; Chapter 2: PHPUnit Support in IDEs; IDEs and PHPUnit; NetBeans; Zend Studio; Eclipse PDT 327 $aInstalling MakeGoodCreating your FirstTest; PhpStorm; Summary; Chapter 3: Tests and What They're All About; Understanding unit testing; What is a unit test?; Assertions; The importance of unit testing; Testing all possible scenarios; What makes a good test?; When to write tests; Anatomy of a PHPUnit test; Defining test methods; Testing functions; Testing methods; The MVC application architecture and tests; Testing controllers; Summary; Chapter 4: Testing Dependencies and Exceptions; Detecting dependencies; Handling dependencies; Exceptions are expected; Testing errors and exceptions; Summary 327 $aChapter 5: Running Tests from the Command LineRunning tests; Processing test results; Test statuses; Command-line switches; Logging results; Code coverage; Including and excluding tests from the execution; When to stop the test execution; Configuration options; Code coverage analysis; Summary; Chapter 6: Test Isolation and Interaction; Test fixtures; Before and after each test method; Before and after each test suite class; Global state; Test dependencies; Data providers; Summary; Chapter 7: Organizing Tests; The PHPUnit XML configuration file; Test listeners; Configuring the code coverage 327 $aWhere to store testsTest suites; Groups; Using the bootstrap file; Summary; Chapter 8: Using Test Doubles; Creating test doubles; Test doubles in action; Using fake; Using stubs; Using mocks and expectations; Test proxies; Understanding Mockery; Installation methods; Comparing Mockery to PHPUnit; How to use Mockery; Summary; Chapter 9: Database Testing; Which database to use; Tests for a database; DBUnit; Installing DBUnit; Database test cases; Datasets; Using DBUnit; Doctrine 2 ORM and database testing; Summary; Chapter 10: Testing APIs; An example of integration testing 327 $aTesting the PayPal APITesting the Facebook API; Testing the Twitter API; Testing the service-oriented architecture; Summary; Chapter 11: Testing Legacy Code; Testing spaghetti code; Black box testing; Using Reflection; Handling dependencies; The Patchwork library; The vfsStream library; The runkit PHP extension; Summary; Chapter 12: Functional Tests in the Web Browser Using Selenium; Installing Selenium; The Selenium IDE; The Selenium Server; Installing drivers; The PHPUnit Selenium extension; Testing in the browser; Recording Selenium tests; PHPUnit Selenium2TestCase; Writing Selenium tests 327 $aPHP-SeleniumClient 330 $aThis book is a practical guide featuring a step-by-step approach that aims to help PHP developers who want to learn or improve their software testing skills. It also takes you through many real-life examples encountered by PHP developers to help you avoid common pitfalls.This book is for developers who have experience with PHP and who want to take their coding skills to another level. Developers who have previous experience with PHPUnit will find interesting chapters concerning PHPUnit in the context of web application development. 410 0$aCommunity experience distilled. 606 $aApplication software$xDevelopment 606 $aComputer programming 606 $aJavaScript (Computer program language) 608 $aElectronic books. 615 0$aApplication software$xDevelopment. 615 0$aComputer programming. 615 0$aJavaScript (Computer program language) 676 $a005.1 700 $aMachek$b Zdenek$0982331 702 $aWishkerman$b Asher 801 0$bMiAaPQ 801 1$bMiAaPQ 801 2$bMiAaPQ 906 $aBOOK 912 $a9910458322303321 996 $aPHPUnit essentials$92242111 997 $aUNINA