You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `toHaveSuspiciousCharacters()` method may be used to help you identify potential suspicious characters in your code.
466
+
467
+
```php
468
+
arch('app')
469
+
->expect('App\Http\Controllers')
470
+
->not->toHaveSuspiciousCharacters();
471
+
```
472
+
473
+
This expectation requires the `intl` PHP extension.
474
+
461
475
<aname="expect-toHaveConstructor"></a>
462
476
### `toHaveConstructor()`
463
477
@@ -619,7 +633,9 @@ It avoids the usage of `die`, `var_dump`, and similar functions, and ensures you
619
633
arch()->preset()->php();
620
634
```
621
635
622
-
You may find all the expectations included in the `php` preset below in our [source code](https://github.com/pestphp/pest/blob/3.x/src/ArchPresets/Php.php).
636
+
You may find all the expectations included in the `php` preset below in our [source code](https://github.com/pestphp/pest/blob/4.x/src/ArchPresets/Php.php).
Copy file name to clipboardExpand all lines: pest-v4-is-here-now-with-browser-testing.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -193,7 +193,7 @@ it('does not run on CI', function () {
193
193
### Miscellaneous Improvements
194
194
195
195
- You may now use `skipLocally()` or `skipOnCi` to conditionally skip tests based on the environment.
196
-
- The `not->toHaveSuspiciousCharacters()` arch expectation has been added to help you identify potential suspicious characters in your code. This arch expectation is now enabled by default on the `php` arch preset.
196
+
- The `not->toHaveSuspiciousCharacters()` arch expectation has been added to help you identify potential suspicious characters in your code. This arch expectation is now enabled by default on the `php` arch preset. This expectation requires the `intl` PHP extension.
197
197
- The expectation `toBeSlug` has been added to help you validate that a string is a valid slug.
0 commit comments