I want to get the data from the below file. I want to know is this possible to achieve? and how we to import it in another file? Purpose of this, is for my unit testing.
I tried the below code but it returns an error.
dd(userData);
ErrorException: Use of undefined constant userData - assumed 'userData'
userData.php
<?php
return [
    [
        'name' => 'Perla',
        'age' => 13,
    ],
    [
        'name' => 'Felepe',
        'age' => 23,
    ],
    [
        'name' => 'Timoteo',
        'age' => 50,
    ]
]
 
    