Last active
          May 6, 2018 21:45 
        
      - 
      
 - 
        
Save JuanVqz/dcaa45380e9b3402d7e33cb1f7e7b883 to your computer and use it in GitHub Desktop.  
    functions utilities phpunit, factory make
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| // composer.json | |
| // "autoload-dev": { | |
| // ... | |
| // "files": ["tests/utilities/functions.php"] | |
| // ... | |
| // } | |
| function create($class, $attributes = []) | |
| { | |
| return factory($class)->create($attributes); | |
| } | |
| function make($class, $attributes = []) | |
| { | |
| return factory($class)->make($attributes); | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment