Created
October 10, 2014 20:28
-
-
Save ciarand/c897e4ba807f1bb7670c to your computer and use it in GitHub Desktop.
testing traits
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 | |
| // your test class goes here | |
| // dummy class: | |
| class DummyTimeSinceCreated | |
| { | |
| use TimeSinceCreatedTrait; // make sure to import it via a “use” statement at the top of the file | |
| protected $created_at; | |
| public function __construct($time) | |
| { | |
| $this->created_at = $time; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment