Dan 🇺🇦 (@dansysanalyst) 's Twitter Profile
Dan 🇺🇦

@dansysanalyst

The tech guy asking too many questions about the business! 💼

⚡ Co-Author of livewire-powergrid.com

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

ID: 1362366855256682496

calendar_today18-02-2021 11:43:34

714 Tweet

302 Takipçi

158 Takip Edilen

Fabio Ivona (@fabioivona) 's Twitter Profile Photo

When testing my code with PEST 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); 🚀

When testing my code with <a href="/pestphp/">PEST</a> 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); 🚀
Fabio Ivona (@fabioivona) 's Twitter Profile Photo

A lot of knowledge sharing in PEST community today! Dan 🇺🇦 tells us how to ensure a route returns the right page and David Carr adds an alternative way want to share? join us! t.me/+kYH5G4d5MV83O…

A lot of knowledge sharing in <a href="/pestphp/">PEST</a> community today!

<a href="/DanSysAnalyst/">Dan 🇺🇦</a> tells us how to ensure a route returns the right page and <a href="/dcblogdev/">David Carr</a>  adds an alternative way

want to share? join us! 
t.me/+kYH5G4d5MV83O…
Ondřej Mirtes (@ondrejmirtes) 's Twitter Profile Photo

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…

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…
Nuno Maduro (@enunomaduro) 's Twitter Profile Photo

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 🇺🇦 (@dansysanalyst) 's Twitter Profile Photo

🎉 PEST 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

Francisco Madeira (@xico2k) 's Twitter Profile Photo

🔴 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…

🔴 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…
Fabio Ivona (@fabioivona) 's Twitter Profile Photo

Following PEST, 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! 👀

Following <a href="/pestphp/">PEST</a>, 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 🇺🇦 (@dansysanalyst) 's Twitter Profile Photo

🚀 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...

Nuno Maduro (@enunomaduro) 's Twitter Profile Photo

.Dan 🇺🇦 has made some updates to the "Video Resources" section of the PEST website. If you are a content creator, please feel free to contribute your own content to the section. pestphp.com/docs/video-res…

Nuno Maduro (@enunomaduro) 's Twitter Profile Photo

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. 🇪🇸

Nuno Maduro (@enunomaduro) 's Twitter Profile Photo

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.

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 🇺🇦 (@dansysanalyst) 's Twitter Profile Photo

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

💡Quick <a href="/pestphp/">PEST</a> tip:  You can assert equality with a delta tolerance using ➔toEqualWithDelta(). 

For example, two watches cannot differ by more than two seconds. ⌚🕰️
Dan 🇺🇦 (@dansysanalyst) 's Twitter Profile Photo

🐣🤔❓ 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 PEST's test() for concepts and it() for actions.

🐣🤔❓ 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 <a href="/pestphp/">PEST</a>'s test() for concepts and it() for actions.
Dan 🇺🇦 (@dansysanalyst) 's Twitter Profile Photo

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

You can use both: PHPUnit Assertions &amp; Pest Expectations in <a href="/pestphp/">PEST</a> tests. 

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

✅ All Tests Passing