for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Irfa\Lockout\Func;
use Irfa\Lockout\Func\Core;
use View;
use File;
class Testing extends Core {
public function testWriteEventFailedLogin($username){
$this->eventFailedLogin($username);
$input = $username;
$dir = config('irfa.lockout.lockout_file_path');
$path = $dir.md5($input);
if(File::exists($path))
{
return true;
}
return false;
public function testWritable($username){
if(is_writable($path))
public function testManualLocking($username){
$path
if($this->lock_account($username))
public function testUnlocking($username){
$unlock = $this->test_unlock_account($username);
if($unlock)
public function testLockLogin($username){
$unlock = $this->lockLogin($username);