Explore tweets tagged as #phpunit
A new version of #stackwatch is out with tons of new features, fixes and removal. The new version now comes with a PHPUnit helper traits to ease testing callback or method performances. See more on the documentation website #php #profiling #OOP
1
0
1
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
0
0
16
This workflow will save you $1,000. (You don't need a QA engineer anymore). We're using this right now to build 100% test coverage for a complex trading platform MVP. Tools: Claude Code + Laravel + PHPUnit + RepoMix. Here's how it works:. Use RepoMix to bundle your core library
8
0
5
مشاريع تخرج .مشاريع برمجية .مشاريع برمجة .لغة برمجة .اعداد بروبوزال تطبيق اندرويد .بحوث تخرج تصميم تطبيق .سي يوني تي (CUnit).بي إتش يوني تي (PHPUnit).لغة بايثون تصميم برنامج اوتوكاد.لغة موكا (Mocha وورد .برامج الإدارة والمتابعة.جيثاب (GitHub).جيت لاب (GitLab).بيت باكيت (Bitbucket
0
22
24
PHPUnitをWordPressで使うためのお勉強用リポジトリを作ったので、その紹介です。. WordPressでPHPUnitを使って単体テストを行う - タロスカイ株式会社タロスカイ株式会社
0
1
2
Very sad I can't use Boost in this project, because it's trying to write PHPUnit tests even though we use Pest 😞 . Then, just doesn't run the test? It says "Created a test. bye" 😧 . Time to manually write guidelines manually like it's the 90s all over again!
6
1
47
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?
1
0
10
Want your PHPUnit test to make an assertion after each test, but before tearDown()?. Checkout: assertPostConditions()
0
3
17
There’s more than one way to test exceptions in PHPUnit. ✅ expectException()- clean & simple.🔍 try/catch - gives you more control.Both are valid.📅 Launches 1st September - grab your early-bird discount here:.
0
2
9
Want to test multiple inputs without repeating yourself?. 🧪 One test method.🔁 Multiple inputs.🧾 Descriptive output with --testdox. Data providers in PHPUnit keep your tests clean and readable. One of many topics in my upcoming Testing PHP course.
1
3
29
Testing your database can lead to slow, complex tests that are hard to write. Hard to write tests, usually don't get written. Join Charles Sprayberry for "Better Database Testing with PHPUnit" for a better way!. Tickets available at
0
0
3
TIL: PHPUnit no longer supports test filenames being different from the test class names (i.e. `class-` prefix used by WP) since version 9. Why enforce this? I assume reflection is still used for resolving the actual class names so there is no practical need for them to match.
1
0
1
🚀 Testing PHP is live! 🚀. 75+ lessons to make you confident with real-world testing:.📚 PHPUnit & Pest.🚀 Laravel & Symfony.📂 PDF + code examples.🏆 Lifetime access. 👉
1
6
46
Group your tests by type and keep your suite under control. Slow? External? Only needed in CI?. Just add:.#[Group('slow')]. Then:.phpunit --group slow. It really pays off as your suite grows. (Trying this and other tricks in my new Testing PHP 2025 course…follow for updates.)
1
6
41
I am more and more avoiding phpunit data providers and doing something like this instead. When you use data providers, I feel like it makes it harder to diagnose problems and harder to isolate a test for a specific set of data.
2
0
4
The phpunit.xml config looks scary at first. But it’s just key-value pairs:.📍 where tests live.🔃 autoloader path.✅ color output. Run this to generate it:. /vendor/bin/phpunit --generate-configuration. My Testing PHP 2025 course is in the oven…follow for updates 🧪🔥
0
4
15
اذا تستخدم PHP وتبي تختبر الدوال اذا كانت تستخرج نفس المخرج المطلوب، فانصحك باستخدام PHPunit. الـ PHPUnit يعتبر Unit Testing يساعدك في اختبار الدوال قبل نشرها في production بشكل مباشر.
0
0
11
Just run the tests you need. Don’t wait for 200+ tests. Run one test:. /vendor/bin/phpunit --filter testSomethingImportant. Run matching tests:. /vendor/bin/phpunit --filter slow. Run a single file:. /vendor/bin/phpunit tests/Feature/MyTest.php. Small habit. Big time-saver.
0
2
11