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 Followers

158 Following

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โ€ฆ
Dan ๐Ÿ‡บ๐Ÿ‡ฆ (@dansysanalyst) 's Twitter Profile Photo

๐Ÿฅณ PEST Telegram group reached 700+ members in a couple of days! Join us and share the #GoodVibes! ๐Ÿ‘‰ t.me/+kYH5G4d5MV83Oโ€ฆ

๐Ÿฅณ <a href="/pestphp/">PEST</a> Telegram group reached 700+ members in a couple of days!

Join us and share the #GoodVibes!
๐Ÿ‘‰ 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