PHP code example of faissaloux / pest-plugin-inside

1. Go to this page and download the library: Download faissaloux/pest-plugin-inside library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

faissaloux / pest-plugin-inside example snippets


expect('file.php')->toReturnLowercase();

expect('file.php')->toReturnUnique();

expect('file.php')->toReturnSingleWords();



// lowercase.php

return [
    'lower',
    'case',
    'lowercase',
    'array' => [
        'lower',
        'case',
    ],
];


expect('lowercase.php')->toReturnLowercase();



// notlowercase.php

return [
    'lower',
    'caSe',
    'lowercase',
];


expect('notlowercase.php')->toReturnLowercase();

expect('directory')->toReturnLowercase();

expect('directory')->toReturnLowercase(depth:0);
bash
directory
├── file.js
├── file.php
├── subdirectory
    ├── file.json
    ├── file1.php
    ├── file2.php