The Grumpy Programmer's Guide To Testing PHP Applications

The Grumpy Programmer's Guide To Testing PHP Applications
Author: Kara Ferguson
Publisher:
Total Pages: 152
Release: 2020-05-22
Genre:
ISBN: 9781940111797

Learn how a Grumpy Programmer approaches testing PHP applications, covering both the technical and core skills you need to learn in order to make testing just a thing you do instead of a thing you struggle with. I feel that testing, as a concept, is hard to explain to beginning programmers: "we are going to write code that is going to make sure your other code works as expected". The assumption that underlies all this is that you already understand how to write computer programs in your chosen language! This makes it very difficult to teach to beginner or inexperienced programmers. When you combine this with how PHP does not force any particular structure on you, you have an environment where only the folks who are really motivated end up learning about testing. The Grumpy Programmer's Guide To Testing PHP Applications is my way to try and provide some help for developers who are looking to become more test-centric and reap the benefits of automated testing and related tooling like static analysis and automation. I believe that by learning the skills (both technical and core) surrounding testing you will be able to write tests using almost any testing framework and almost any PHP application. The book combines all the material from my previous books, adds new material, and revisits some old topics where my experiences have changed my thoughts. I break the vast topic of testing into smaller chunks, along with providing lots of examples and explanations of how I approach testing applications. Some of the things I cover are: Test-Driven development Strategies for Test-After practices Test refactoring strategies How PHPUnit itself works Complementary tools and approaches like static analysis and mutation testing Learning the core skills you need to get other people testing their code

PHP Beyond the Web

PHP Beyond the Web
Author: Rob Aley
Publisher: Apress
Total Pages: 214
Release: 2016-12-15
Genre: Computers
ISBN: 1484224817

Use your existing web-based PHP skills to write all types of software: CLI scripts, desktop software, network servers, and more. This book gives you the tools, techniques, and background necessary to write just about any type of software you can think of, using the PHP you know. PHP Beyond the Web shows you how to take your knowledge of PHP development for the web and utilise it with a much wider range of software systems. Enjoy the benefits of PHP after reading this book: save money by redeploying existing skills, not learning new ones; save time and increase productivity by using a high-level language; and make money by providing your clients a full-stack service (not just websites). PHP is no longer just a great scripting language for websites, it's now a powerful general-purpose programming language. Expand your use of PHP into your back-end systems, server software, data processing services, desktop interfaces, and more. What You'll Learn Write interactive shell scripts Work with system daemons Write desktop software Build network servers Interface with electronics using PHP and the Raspberry Pi Manage performance, deployment, licensing, and system interaction Discover the software tools for development and get other great sources of technical information and help Who This Book Is For Experienced PHP programmers or experienced programmers interested in leveraging PHP outside the web development context. /div

PHPUnit Pocket Guide

PHPUnit Pocket Guide
Author: Sebastian Bergmann
Publisher: "O'Reilly Media, Inc."
Total Pages: 89
Release: 2005-09-29
Genre: Computers
ISBN: 0596553471

Smart web developers will tell you that the sooner you detect your code mistakes, the quicker you can fix them, and the less the project will cost in the long run. Well, the most efficient way to detect your mistakes in PHP is with PHPUnit, an open source framework that automates unit testing by running a battery of tests as you go. The benefits of PHPUnit are significant: a reduction in the effort required to frequently test code fewer overall defects added confidence in your code improved relations with your open source teammates The only problem with this popular testing tool was its lack of documentation-until now, that is. For this, O'Reilly went right to the source, as Sebastian Bergmann, the author of PHPUnit Pocket Guide, also happens to be PHPUnit's creator. This little book brings together hard-to-remember information, syntax, and rules for working with PHPUnit. It also delivers the insight and sage advice that can only come from the technology's creator. Coverage of testing under agile methodologies and Extreme Programming (XP) is also included. The latest in O'Reilly's series of handy Pocket Guides, this quick-reference book puts all the answers are right at your fingertips. It's an invaluable companion for anyone interested in testing the PHP code they write for web applications.

Learn CakePHP

Learn CakePHP
Author: Rādhārādhya Dāsa
Publisher: Apress
Total Pages: 133
Release: 2016-08-22
Genre: Computers
ISBN: 1484212126

Accelerate your development of PHP applications using the popular CakePHP web application development framework and unit testing. This short book shows you how to carry out test-driven development with fixtures, model tests, controller tests, mocks, and test suites. Learn CakePHP contains all you need to get started with the CakePHP framework to build faster, better PHP-based web applications. You'll learn about unit testing and how to implement it in CakePHP. This approach to coding leads to better code, better applications, and better programming habits. With this knowledge your PHP skills will go from strength to strength allowing you to write more and improved code. What you'll learn What is unit testing and CakePHP and how to put the two together What is clean coding What is TDD and the development cycle using this approach How to work with fixtures, model tests, text callbacks, controller tests, and more How to do mocks, test suites, testing from the command line and more How to work with code coverage, fixtures data, and private methods Who this book is for This book is for experienced PHP programmers and web developers who have little or no experience using CakePHP and/or unit testing.

Real-World Solutions for Developing High-Quality PHP Frameworks and Applications

Real-World Solutions for Developing High-Quality PHP Frameworks and Applications
Author: Sebastian Bergmann
Publisher: John Wiley & Sons
Total Pages: 408
Release: 2011-04-18
Genre: Computers
ISBN: 1118098242

Learn to develop high-quality applications and frameworks in PHP Packed with in-depth information and step-by-step guidance, this book escorts you through the process of creating, maintaining and extending sustainable software of high quality with PHP. World-renowned PHP experts present real-world case studies for developing high-quality applications and frameworks in PHP that can easily be adapted to changing business requirements. . They offer different approaches to solving typical development and quality assurance problems that every developer needs to know and master. Details the process for creating high-quality PHP frameworks and applications that can easily be adapted to changing business requirements Covers the planning, execution, and automation of tests for the different layers and tiers of a Web application Demonstrates how to establish a successful development process Shares real-world case studies from well-known companies and their PHP experts With this book, you’ll learn to develop high-quality PHP frameworks and applications that can easily be maintained with reasonable cost and effort.

Phpunit Essentials

Phpunit Essentials
Author: Zdenek Machek
Publisher: Packt Pub Limited
Total Pages: 314
Release: 2014-05-18
Genre: Computers
ISBN: 9781783283439

This 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.

Test-Driven Development with PHP 8

Test-Driven Development with PHP 8
Author: Rainier Sarabia
Publisher: Packt Publishing Ltd
Total Pages: 337
Release: 2023-01-13
Genre: Computers
ISBN: 1803243597

A PHP developer's practical guide to planning, writing, and deploying maintainable and extensible software solutions with automated tests in a well-structured way Key FeaturesLearn to organize and translate business requirements into maintainable softwareMinimize regressions and bugs while releasing new features or bug fixesBuild maintainable applications using SOLID principlesBook Description PHP web developers end up building complex enterprise projects without prior experience in test-driven and behavior-driven development which results in software that's complex and difficult to maintain. This step-by-step guide helps you manage the complexities of large-scale web applications. It takes you through the processes of working on a project, starting from understanding business requirements and translating them into actual maintainable software, to automated deployments. You'll learn how to break down business requirements into workable and actionable lists using Jira. Using those organized lists of business requirements, you'll understand how to implement behavior-driven development (BDD) and test-driven development (TDD) to start writing maintainable PHP code. You'll explore how to use the automated tests to help you stop introducing regressions to an application each time you release code by using continuous integration. By the end of this book, you'll have learned how to start a PHP project, break down the requirements, build test scenarios and automated tests, and write more testable and maintainable PHP code. By learning these processes, you'll be able to develop more maintainable, and reliable enterprise PHP applications. What you will learnUnderstand how to start a software projectDiscover how to use Jira as a tool to organize your tasksExplore when and how to write unit, integration, and functional tests using PHPUnitWrite behavior-driven tests using BehatApply SOLID principles to help you write more testable codeGet the most out of your automated tests by using continuous integrationUse continuous delivery to help you prepare your application for deploymentWho this book is for This book is for PHP software developers looking to implement TDD and BDD in their projects. An understanding of object-oriented programming is required to get the most out of this book. Professional software development experience will also be beneficial to understand real-life business cases.

Expert PHP 5 Tools

Expert PHP 5 Tools
Author: Dirk Merkel
Publisher: Packt Publishing Ltd
Total Pages: 595
Release: 2010-03-30
Genre: Computers
ISBN: 1847198392

Annotation Even if you find writing PHP code easy, writing code that is efficient and easy to maintain and reuse is not so straightforward. Self-taught PHP developers and programmers transitioning from other languages often lack the knowledge to work with PHP on an enterprise level. They need to take their PHP development skills to that level by learning the skills and tools necessary to write maintainable and efficient code. This book will enable you to take your PHP development skills to an enterprise level by teaching you the skills and tools necessary to write maintainable and efficient code. You will learn how to perform activities such as unit testing, enforcing coding standards, automating deployment, and interactive debugging using tools created for PHP developers _ all the information in one place. Your code will be more maintainable, efficient, and self-documented. From the design phase to actually deploying the application, you will learn concepts and apply them using the best-of-breed tools available in PHP. Experienced developers looking for expertise in PHP development will learn how to follow best practices within the world of PHP. The book contains many well-documented code samples and recipes that can be used as a starting point for producing quality code. Specifically, you will learn to design an application with UML, code it in Eclipse with PDT, document it with phpDocumentor, debug it interactively with Xdebug, test it by writing PHPUnit tests, manage source code in Subversion, speed up development and increase stability by using Zend Framework, pull everything together using continuous integration, and deploy the application automatically with Phing _ all in one book. The author's experience in PHP development enables him to share insights on using enterprise tools, in a clear and friendly way. An in-depth look at best-of-breed enterprise-level tools, methodologies, and tips for professional PHP developers to write maintainable, efficient code.

Php Unit Pocket Guide

Php Unit Pocket Guide
Author: Sebastian Bergmann
Publisher:
Total Pages: 88
Release: 2005-01-01
Genre:
ISBN: 9788184040258

Smart web developers will tell you that the sooner you detect your code mistakes, the quicker you can fix them, and the less the project will cost in the long run. Well, the most efficient way to detect your mistakes in PHP is with PHPUnit, an open source framework that automates unit testing by running a battery of tests as you go.

JavaScript for PHP Developers

JavaScript for PHP Developers
Author: Stoyan Stefanov
Publisher: "O'Reilly Media, Inc."
Total Pages: 260
Release: 2013-04-24
Genre: Computers
ISBN: 1449370314

If you want to significantly expand your web development skills beyond PHP, this practical, hands-on book teaches you ECMAScript—the core JavaScript language—from the ground up. You’ll discover some similarities between JavaScript and PHP, such as conditions and loops, but the primary focus is on JavaScript’s unique object creation, classes, prototypes, and inheritance. JavaScript knowledge is essential for working with today’s Web, whether you’re building applications for the client, the server, or for mobile use—and your PHP experience gives you a head start. This book will help you become fluent with JavaScript quickly, and then serve as a handy reference once you start coding. Explore JavaScript syntax, including variables, arrays, loops, and conditions Learn how functions are important in JavaScript—and why they’re actually objects Delve into JavaScript’s object-oriented features, including prototypes, code reuse, and inheritance Examine the built-in API and explore its global functions, properties, and objects Learn about updates in ECMAScript5, the latest version of the standard Use common design patterns to organize your code in large applications