Aprovecha el precio especial y haz tu profesión a prueba de IA

Antes: $249

Currency
$209
Suscríbete

Termina en:

0 Días
19 Hrs
8 Min
58 Seg

Todo lo que aprenderás sobre testing con PHP y Laravel

1/24
Resources
Transcript

What do I need to know before starting the PHP and Laravel testing course?

In this course, you will learn about software testing within the Laravel framework, using PHP Unit. To get the most out of this course, it is essential that you already have a basic knowledge of Laravel. If you have not yet taken the introductory courses, I encourage you to complete them, as we cover key concepts that are assumed to be familiar during this training.

Laravel is a robust and elegant framework that makes it easy for you to develop web applications. Within Laravel, we visualize its architecture as a system of layers, in one of which, are the tests essential to ensure the quality and functionality of the code. Having a clear understanding of this structure is crucial to advance in the course.

How does testing in Laravel work with PHP Unit?

PHP Unit is the central tool that we will use for testing in Laravel. It is a unit testing framework for PHP that helps us automate the verification that our code works as expected, eliminating the need to manually check every change in the browser.

What are the main commands for testing?

There are two main commands that we will use during the course:

  • Vendor bin phpunit: This is a PHP Unit command that allows you to run all the tests within a Laravel project, showing you immediately if the whole system is working as it should.

  • PHP artisan test: This is a Laravel's own command designed to work together with PHP Unit. It offers a more direct integration with the framework, so it will be the main method we will use.

Why automate the testing of our code?

Automating tests is a crucial step in modern development. It allows us to:

  • Increase efficiency by eliminating repetitive manual testing.
  • Detect bugs faster.
  • Improve software quality, ensuring that new modifications do not break existing functionality.
  • Facilitate continuous integration in large projects, where multiple developers are collaborating.

By the end of this course, you will not only have improved your technical skills, but you will also have optimized your workflow to develop more robust and reliable software. Go ahead and succeed in your learning!

Contributions 16

Questions 1

Sort by:

Want to see more contributions, questions and answers from the community?

Bienvenidos, disfruten este curso.

Los testing uno de mis archirrivales mas antiguos … ya es hora de superarlo.

Espero aprender mucho que de este tema, no tengo nada de conocimiento!

Woohooo! Un curso de testing, desarrollar un sistema bajo testing es muy importante, la metodología de Test Driven Development ayuda a que tengas un código de mjor calidad.
.
Y de hecho algo cursoso es que esta metodología se usa en otros cursos de Platzi, por ejemplo, en el Curso de creación de Lenguajes de Programación se usa mucho TDD. Go ahead!

Tengo muchas expectativas de este curso. Complemento del “Curso de Introducción a Laravel”

Recuerdo cuando un amigo decia que Italo no era bueno, porque solo subia el contenido en youtube, PUES COMO LA VES ANDRES !!! mira el best profesor de laravel de platzi jajaja xD

A darle! no se rajen gente y animo!

Espero mucho de éste curso, vamos a darle.

Genial, esperaba este curso. Estoy al debe con los test en Laravel 😅

Excelente introducción, espero mucho de este curso, vamo a darle

Con alta espectativa iniciando este curso

Empezamos con lo de Testing

Vamos con toda testing con PHP y Laravel…

Iniciado…

Este profe sabe mucho , lo he seguido en youtube ahora en platzi lo seguire

Iniciando