Пример #1
0
 /**
  * Create a new model instance
  *
  * @return ModelHashingStub
  */
 public function __construct()
 {
     parent::__construct();
     // Assign a default hasher for mocking purposes
     $this->hasher = new BcryptHasher();
 }
Пример #2
0
 /**
  * Create a new model instance.
  *
  * @return ModelEncryptingStub
  */
 public function __construct()
 {
     parent::__construct();
     // Assign a default encrypter for mocking purposes
     $this->encrypter = EncrypterStub::newInstance();
 }