Last active
April 4, 2018 06:45
-
-
Save ahmed-abid/b163bd3f3d80752969b4697f86ed9ea0 to your computer and use it in GitHub Desktop.
aspectmock time example
This file contains 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 | |
namespace App\Core\Test; | |
/** | |
* My Class : example to show the case of Standard PHP functions | |
* | |
* Class User | |
* | |
* @package App\Core\Test | |
* | |
*/ | |
class User | |
{ | |
/** | |
* get Time | |
* | |
* @return int | |
* | |
*/ | |
public function getTime() : int | |
{ | |
return time(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment