Gert de Pagter
@BackEndTea
Followers
573
Following
5K
Media
79
Statuses
2K
PHP Developer | I write a weekly blog about PHP development
Joined November 2017
Properly typing your arrays can improve your code a lot, read about it here: https://t.co/5LVsWXu019
#PHP
backendtea.com
We have been able to natively type parameters of methods and functions in PHP for quite some time. In basically any version of PHP you should be running we can do something like the following:
1
1
5
#MySQL 9.0 is out: https://t.co/NocsbF45ra Being able to run javascript in MySQL is gonna be a game changer for sure #MySQL9
0
0
3
Ever wondered what `declare(strict_types=1)` does in #PHP ? https://t.co/NIBnqzCCRz
backendtea.com
declare(strict_types=1) makes your code more strict, but what does it actually do?
0
0
1
Learn how to generate a random string in #PHP. Since PHP 8.2 there are more options to generate a secure random string. This post will explain how you can do so! https://t.co/D9R0m0ySWT
backendtea.com
Use the Randomizer class to generate a random string, based on an input string.
0
0
2
Mastering PHPUnit: Using data providers https://t.co/FZVPVtMJC5 Discussions: https://t.co/ljiRKhCOZA
#php #programming by @BackEndTea
backendtea.com
Learn how to use data providers in PHPUnit, to test a lot of scenarios and reduce code duplication
0
1
3
Test multiple scenarios quickly, and reduce code duplication with data providers in #PHPUnit
https://t.co/GmoJzWbuQO
#PHP #unittest
backendtea.com
Learn how to use data providers in PHPUnit, to test a lot of scenarios and reduce code duplication
0
1
1
Test multiple scenarios quickly, and reduce code duplication with data providers in #PHPUnit
https://t.co/GmoJzWbuQO
#PHP #unittest
backendtea.com
Learn how to use data providers in PHPUnit, to test a lot of scenarios and reduce code duplication
0
1
1
https://t.co/0E9UiCVC03 This week i wrote about writing your first PHPUnit tests. #PHP #PHPUnit #unittests
backendtea.com
Learn how to write your first tests in PHPUnit, using assertions. Use methods like setUp and tearDown, to reduce code duplication
0
0
0
I'm writing a series on #PHPUnit this week is a basic introduction:
backendtea.com
In this blog series we’ll go from writing our first unit test to being a PHPUnit master. This first post will go over the basics, and introduce you to PHPUnit
0
1
6
This form is probably matching phone numbers with regex, but the only error i'm seeing is that it only allows numbers. I'm only entering numbers. FFS just tell me what the expected input is
1
0
0
The #frontend thing I learned today. If you handle onclick event in #javascript and you want to preventDefault or stopPropagation, please ensure that you don't use 'await' in your handler! I spent about few hours trying to figure this out
5
4
21
Unit test shouldn't use the filesystem. Yet you use an autoloader which includes file from the filesystem. curious...
4
0
1
I swear the JS eco system is so broken. I just want to have a small TS project with unit tests. And i'm already an hour in just getting set up. All this tooling that is incompatible with eachother
0
1
12
I feel that one of the advantages of unit testing no one talks about is that good code === testable code.
1
2
9
Anyone have some guides/blogs on converting an app without a framework to #Symfony? Its not flat php files, but a kinda homebrew framework
4
1
2
When the message of the JS error you get is "[object Object]", you know its time to stop for the day.
0
0
0