DanSysAnalyst's profile picture. The tech guy asking too many questions about the business! 💼

⚡ Co-Author of http://livewire-powergrid.com

👨🏻‍💻 I.T.  | 🌐 Languages | 🍷 Wine |  🥁 Music

Dan 🇺🇦

@DanSysAnalyst

The tech guy asking too many questions about the business! 💼 ⚡ Co-Author of http://livewire-powergrid.com 👨🏻‍💻 I.T. | 🌐 Languages | 🍷 Wine | 🥁 Music

You can use both: PHPUnit Assertions & Pest Expectations in @pestphp tests. I always use ➔ToBe() the equivalent of ➔AssertSame() because it asserts the value and type. ✅ All Tests Passing

DanSysAnalyst's tweet image. You can use both: PHPUnit Assertions & Pest Expectations in @pestphp tests. 

I always use ➔ToBe() the equivalent of ➔AssertSame() because it asserts the value and type.

✅ All Tests Passing

🐣🤔❓ Naming is hard! How do you name your tests? My personal approach is: ⮕ Expressive (long) names: What is tested? Any variation? Expected result? ⮕ Simple: Everybody should understand it without seeing code. ⮕ I use @pestphp's test() for concepts and it() for actions.

DanSysAnalyst's tweet image. 🐣🤔❓ Naming is hard! How do you name your tests?

My personal approach is:

⮕ Expressive (long) names: What is tested? Any variation? Expected result?
⮕ Simple: Everybody should understand it without seeing code.
⮕ I use @pestphp's test() for concepts and it() for actions.

💡Quick @pestphp tip: You can assert equality with a delta tolerance using ➔toEqualWithDelta(). For example, two watches cannot differ by more than two seconds. ⌚🕰️

DanSysAnalyst's tweet image. 💡Quick @pestphp tip:  You can assert equality with a delta tolerance using ➔toEqualWithDelta(). 

For example, two watches cannot differ by more than two seconds. ⌚🕰️

Dan 🇺🇦 reposted

Pest 2.6 is out! This week's release includes: 🧼 You can now chain methods such as `skip` or `with` on the `beforeEach` so that they are applied to all tests in the same file. 🔗 The `throws` method now excepts an instance of an exception.

enunomaduro's tweet image. Pest 2.6 is out! This week's release includes:

🧼 You can now chain methods such as `skip` or `with` on the `beforeEach` so that they are applied to all tests in the same file.
🔗 The `throws` method now excepts an instance of an exception.
enunomaduro's tweet image. Pest 2.6 is out! This week's release includes:

🧼 You can now chain methods such as `skip` or `with` on the `beforeEach` so that they are applied to all tests in the same file.
🔗 The `throws` method now excepts an instance of an exception.
enunomaduro's tweet image. Pest 2.6 is out! This week's release includes:

🧼 You can now chain methods such as `skip` or `with` on the `beforeEach` so that they are applied to all tests in the same file.
🔗 The `throws` method now excepts an instance of an exception.

Dan 🇺🇦 reposted

Are there no PHP meetups scheduled in Barcelona (Spain) during the first two weeks of June? I'll be in town during that period and would love to give a talk. 🇪🇸


Enjoying a ☕ with @enunomaduro while working on some @pestphp doc improvements. 👀 pestphp.com

DanSysAnalyst's tweet image. Enjoying a ☕ with @enunomaduro while working on some @pestphp doc improvements.

👀 pestphp.com

✨ Pest is all about fun & #GoodVibes ! ✨

Pest team. 📸

enunomaduro's tweet image. Pest team. 📸


🚀 Run a playground from a GitHub PR or Repository with one click! @ijpatricio is offering a free workshop to show you these skills, don't miss it! ✍️ Sign up below...

Developers, package creators, and software creators: You can have a 1 click environment to develop or preview PR with the ability to change code instantly. It's great to provide a demo/playground. I'm collecting interest in a free remote workshop 🚀 forms.gle/YjWkoMc3QccZs4…



Dan 🇺🇦 reposted

Following @pestphp, we just released v2 for our Pest Plugin for Laravel Expectations 🚀 👉github.com/defstudio/pest…👈 Full Pest v2 and Laravel v10 support A new expectation to compare models that takes advantage of one of the great improvements led by Pest v2: Interceptors! 👀

FabioIvona's tweet image. Following @pestphp, we just released v2 for our Pest Plugin for Laravel Expectations 🚀

👉github.com/defstudio/pest…👈

Full Pest v2 and Laravel v10 support

A new expectation to compare models that takes advantage of one of the great improvements led by Pest v2: Interceptors! 👀

Dan 🇺🇦 reposted

🔴 In one hour, we will be live with the 🇵🇹 PHP Portugal Podcast Ep. 2! Make sure to join us will be super fun! youtube.com/watch?v=hE9J2B…

xiCO2k's tweet image. 🔴 In one hour, we will be live with the 🇵🇹 PHP Portugal Podcast Ep. 2!

Make sure to join us will be super fun!

youtube.com/watch?v=hE9J2B…

Dan 🇺🇦 reposted

Is PHPStan level 9 not brutal enough for you? I just updated the documentation with some tips how to tune PHPStan to be even more strict to give you additional type safety to your code: phpstan.org/user-guide/rul…

OndrejMirtes's tweet image. Is PHPStan level 9 not brutal enough for you? I just updated the documentation with some tips how to tune PHPStan to be even more strict to give you additional type safety to your code: phpstan.org/user-guide/rul…

🎉 @pestphp v2 is out! - If you never wrote a test before... - You never checked what is inside the 'tests' folder... Get started now! 1. Install Pest: pestphp.com/docs/installat… 2. Write your first test: pestphp.com/docs/writing-t… #LetsPestThis


Dan 🇺🇦 reposted

Announcing Pest 2: ✓ New powerful architecture plugin ✓ Up to 60% faster on parallel testing ✓ Stay organized with to-dos in your tests ✓ New options like --profile, --retry, --dirty Plus, we've completely revamped our documentation and website! pestphp.com/docs/announcin…


Dan 🇺🇦 reposted

today() 💚💙💜

Caneco's tweet image. today() 💚💙💜

Congrats on the package Tom!

I've been working with @laravelphp and using @metabase for data visualization for quite while. So I created a package to easily integrate them and embed questions/dashboards using blade components. If you use these tools, you might wanna check it out ( : github.com/tombenevides/m…

github.com

GitHub - devatreides/metavel: A simple package to integrate Metabase dashboards and questions to...

A simple package to integrate Metabase dashboards and questions to Laravel - devatreides/metavel



Dan 🇺🇦 reposted

When testing my code with @pestphp I always add in Pest.php a helper method to log in with a fake user and be able to set its role. Then in my tests is as easy as: login(Role::auditor); 🚀

FabioIvona's tweet image. When testing my code with @pestphp I always add in Pest.php a helper method to log in with a fake user and be able to set its role. 

Then in my tests is as easy as: 

login(Role::auditor); 🚀

🥳 @pestphp Telegram group reached 700+ members in a couple of days! Join us and share the #GoodVibes! 👉 t.me/+kYH5G4d5MV83O…


Dan 🇺🇦 reposted

A lot of knowledge sharing in @pestphp community today! @DanSysAnalyst tells us how to ensure a route returns the right page and @dcblogdev adds an alternative way want to share? join us! t.me/+kYH5G4d5MV83O…


Loading...

Something went wrong.


Something went wrong.