#phpunit 검색 결과

In the near future #phpstan will error about your invalid #phpunit dataproviders data 🥰

markusstaab's tweet image. In the near future #phpstan will error about your invalid #phpunit dataproviders data 🥰

🐘 30 Years of PHP. 25 Years of Testing. At #IntPHPcon, Sebastian Bergmann — creator of @PHPUnit & @PHPFoundation board member — shares the history & future of PHP & PHPUnit. 📅 Wed, Oct 29 | 14:00 🎟️ phpconference.com/php-core-codin… #PHP #PHPUnit #OpenSource #Testing

phpconference's tweet image. 🐘 30 Years of PHP. 25 Years of Testing.

At #IntPHPcon, Sebastian Bergmann — creator of @PHPUnit  & @PHPFoundation  board member — shares the history & future of PHP & PHPUnit.

📅 Wed, Oct 29 | 14:00
🎟️ phpconference.com/php-core-codin…

#PHP #PHPUnit #OpenSource #Testing

New rule for #phpunit is coming...

rectorphp's tweet image. New rule for #phpunit is coming...

Proposed a fix so #phpunit will exit with a error message in case a test calls exit() but does not use process isolation (so exits the PHPUnit process) before PHPUnit exited without notice Even worse, the test could exit(0), so the shell will not see a non-zero exit code wdyt?

markusstaab's tweet image. Proposed a fix so #phpunit will exit with a error message in case a test calls exit() but does not use process isolation (so exits the PHPUnit process)

before PHPUnit exited without notice

Even worse, the test could exit(0), so the shell will not see a non-zero exit code

wdyt?

I'm writing #phpunit tests ontop of a #laravel app. Something has lost its mind, every time I add 2 assertions this number increases by about 3000 I'm now at 14,000 assertions, when in actual fact I have about 25 haha.

dr4goonis's tweet image. I'm writing #phpunit tests ontop of a #laravel app.

Something has lost its mind, every time I add 2 assertions this number increases by about 3000

I'm now at 14,000 assertions, when in actual fact I have about 25

haha.

Yesterday I hunted down a performance regression in #phpunit 11.x and 12.x when big objects (e.g. ReflectionClass) are used in dataproviders, in comparison to phpunit 10.x Proposed a fix, short discussion with Sebastian Bergmann, and here we go: Fix released today. love it.

markusstaab's tweet image. Yesterday I hunted down a performance regression in #phpunit 11.x and 12.x when big objects (e.g. ReflectionClass) are used in dataproviders, in comparison to phpunit 10.x

Proposed a fix, short discussion with Sebastian Bergmann, and here we go: Fix released today.

love it.

Todays #phpunit release contains a fix which makes sure the end-user at least gets a hint about a fatal error, even though php.ini was configured with display_errors=0

markusstaab's tweet image. Todays #phpunit release contains a fix which makes sure the end-user at least gets a hint about a fatal error, even though php.ini was configured with display_errors=0

When you see that beautiful sea of green in your test suite. #php #phpunit

rcsofttech85's tweet image. When you see that beautiful sea of green in your test suite.

#php #phpunit

Mocking methods is straightforward in #php using PHPUnit 🏝 But what about methods which are called more than once and might return different results? 🤔 Well that can be mocked also…watch me do it here👇 garyclarke.tech/courses/testin… #PHPUnit

garyclarketech's tweet image. Mocking methods is straightforward in #php using PHPUnit 🏝

But what about methods which are called more than once and might return different results? 🤔

Well that can be mocked also…watch me do it here👇

garyclarke.tech/courses/testin…

#PHPUnit

In the next #phpunit 12.x release the PHPT test runner will emit warnings, in case of fatal/parse-errors in --SKIPIF-- or --CLEAN-- sections. Until now these were swallowed without further notice

markusstaab's tweet image. In the next #phpunit 12.x release the PHPT test runner will emit warnings, in case of fatal/parse-errors in 
--SKIPIF-- or --CLEAN-- sections.

Until now these were swallowed without further notice

Mocking methods is fairly straightforward in #php using PHPUnit 🏝 But what about methods which are called more than once and might return different results? 🤔 Well that can be mocked also…watch me do it here👇 garyclarke.tech/courses/testin… #PHPUnit

garyclarketech's tweet image. Mocking methods is fairly straightforward in #php using PHPUnit 🏝

But what about methods which are called more than once and might return different results? 🤔

Well that can be mocked also…watch me do it here👇

garyclarke.tech/courses/testin…

#PHPUnit

PHPUnit is really flexible 🤸🏽 There are obvious ways to run your tests by folders etc. but the group attribute allows you to run (or not run) them by group association…cool 😎 Learn about testing PHP here: garyclarke.tech/p/testing-php #php #PHPUnit

garyclarketech's tweet image. PHPUnit is really flexible 🤸🏽

There are obvious ways to run your tests by folders etc. but the group attribute allows you to run (or not run) them by group association…cool 😎

Learn about testing PHP here:
garyclarke.tech/p/testing-php

#php #PHPUnit

Les tests unitaires, c'était pas mon délire. Mais avec l'#IA (merci Claude 🤖) et un bon défi #PrestaShop + #PHPUnit d'un autre âge… 💥 J’ai codé mon propre système. Et franchement ? Je trouve ça assez classe. 😎

_PrestaSafe's tweet image. Les tests unitaires, c'était pas mon délire.
Mais avec l'#IA (merci Claude 🤖) et un bon défi #PrestaShop + #PHPUnit d'un autre âge…
💥 J’ai codé mon propre système.
Et franchement ? Je trouve ça assez classe. 😎

A big thank you goes out to @jetbrains and the @phpstorm team, which started sponsoring my open source work. I am really proud that more and more companies believe in my open source efforts and can see value generated with #phpstan, #phpunit, #rector...


Do you prefer setUp() over static methods for preparing dependencies in your unit tests? New rule in #phpunit @rectorphp set helps you solve it 😇

VotrubaT's tweet image. Do you prefer setUp() over static methods 
for preparing dependencies in your unit tests?

New rule in #phpunit @rectorphp set 
helps you solve it 😇

In the next #phpstan release we will report a error when a bool type is only used as true or false. such cases can easily happen after refactoring, as I recently experienced while contributing to #phpunit phpstan.org/r/a7f2141b-195…


Nothing hits quite like turning a red test into green ✅ From "Expected to be called 1 time, actually called 0" to "OK (11 tests, 26 assertions)" — chef’s kiss 👨‍🍳💚 #PHPUnit #NHRProgrammingThoughts

nhr_rob's tweet image. Nothing hits quite like turning a red test into green ✅

From "Expected to be called 1 time, actually called 0" to "OK (11 tests, 26 assertions)" — chef’s kiss 👨‍🍳💚

#PHPUnit #NHRProgrammingThoughts

Did somebody ever run into an issue where #phpunit get `Killed` think reaching 4GB memory limit while generating the Code Coverage HTML report?

alex_s_'s tweet image. Did somebody ever run into an issue where #phpunit get `Killed` think reaching 4GB memory limit while generating the Code Coverage HTML report?

In the near future #phpstan will error about your invalid #phpunit dataproviders data 🥰

markusstaab's tweet image. In the near future #phpstan will error about your invalid #phpunit dataproviders data 🥰

Started cooking a new #phpstan builtin rule which detects problems in #phpunit dataprovider data. 👨‍🍳 I am already in love with it 😅


A big thank you goes out to @jetbrains and the @phpstorm team, which started sponsoring my open source work. I am really proud that more and more companies believe in my open source efforts and can see value generated with #phpstan, #phpunit, #rector...


🎯 PHPUnit 10+ is now part of Drupal 11. Alexander Shabanov shares how to migrate test suites using Rector + compatibility traits. Refactor now, future-proof later. bit.ly/42UUHYQ #Drupal11 #PHPUnit #TestAutomation #Drupal


Writing tests for PHP isn’t just smart, it’s essential. Build confidence in your code one test at a time! ✅ #PHPUnit #DevTips


🔧 John Locke’s @freelock Drupal Flake now supports PHPUnit testing! A Nix-based local dev alt to Docker, tested on Drupal 11.2 + PHP 8.3. Details + commands: bit.ly/4mwq8Qg #Drupal #PHPUnit #Testing #Nix

thedroptimes's tweet image. 🔧 John Locke’s @freelock  Drupal Flake now supports PHPUnit testing!

A Nix-based local dev alt to Docker, tested on Drupal 11.2 + PHP 8.3.

Details + commands: bit.ly/4mwq8Qg 

#Drupal #PHPUnit #Testing #Nix

The markTestIncomplete() method in #PHPUnit is used to indicate that a test is not yet fully implemented. It allows developers to stub tests and complete them later. This is a great way to add a todo list for a new feature. #php #symfony


In the next #phpstan release we will report a error when a bool type is only used as true or false. such cases can easily happen after refactoring, as I recently experienced while contributing to #phpunit phpstan.org/r/a7f2141b-195…


Recently I worked with a single reproducer which revealed a out-of-memory problem when running #phpunit code-coverage, and a #phpstan performance problem running static analysis on it. for both tools a fix has been implemented 🥳


Today I worked on phpunit/php-code-coverage to improve #phpunit performance when generating #codecoverage reports. the just pushed release improves my example use case by ~33%. Consider sponsoring my open source work in case you love such fixes :-)


I have spent a few weeks improving/hardening #phpunit process/subprocess handling and related features like process isolation and PHPT to pave the way for future improvements. Dozens of developer experience fixes are already in - more to come.


Ich glaube, initial Best Practice TYPO3 Testsetups mit PHPUnit für Extensions einzubauen, bringt mehr als statische Codeanalyse. Was meint ihr? #TYPO3 #PHPUnit


🛠 We’ll split our test suite: – /tests/unit → pure PHP logic, no WP – /tests/integration → full WP env with WP_UnitTestCase Fast where it can be, thorough where it must be. #PHPUnit #CleanCode #WordPress


🛡 Unit tests are your fastest safety net. No WordPress bootstrapping. No DB calls. Just pure logic in isolation. They catch bugs early & give you confidence to refactor. #PHPUnit #UnitTesting #DevOps


Proposed a fix so #phpunit will exit with a error message in case a test calls exit() but does not use process isolation (so exits the PHPUnit process) before PHPUnit exited without notice Even worse, the test could exit(0), so the shell will not see a non-zero exit code wdyt?

markusstaab's tweet image. Proposed a fix so #phpunit will exit with a error message in case a test calls exit() but does not use process isolation (so exits the PHPUnit process)

before PHPUnit exited without notice

Even worse, the test could exit(0), so the shell will not see a non-zero exit code

wdyt?

In the next #phpunit 12.x release the PHPT test runner will emit warnings, in case of fatal/parse-errors in --SKIPIF-- or --CLEAN-- sections. Until now these were swallowed without further notice

markusstaab's tweet image. In the next #phpunit 12.x release the PHPT test runner will emit warnings, in case of fatal/parse-errors in 
--SKIPIF-- or --CLEAN-- sections.

Until now these were swallowed without further notice

🐘 30 Years of PHP. 25 Years of Testing. At #IntPHPcon, Sebastian Bergmann — creator of @PHPUnit & @PHPFoundation board member — shares the history & future of PHP & PHPUnit. 📅 Wed, Oct 29 | 14:00 🎟️ phpconference.com/php-core-codin… #PHP #PHPUnit #OpenSource #Testing

phpconference's tweet image. 🐘 30 Years of PHP. 25 Years of Testing.

At #IntPHPcon, Sebastian Bergmann — creator of @PHPUnit  & @PHPFoundation  board member — shares the history & future of PHP & PHPUnit.

📅 Wed, Oct 29 | 14:00
🎟️ phpconference.com/php-core-codin…

#PHP #PHPUnit #OpenSource #Testing

In the near future #phpstan will error about your invalid #phpunit dataproviders data 🥰

markusstaab's tweet image. In the near future #phpstan will error about your invalid #phpunit dataproviders data 🥰

Loading...

Something went wrong.


Something went wrong.


United States Trends