tests/UsersTest.php
/**
     * @testdox A user can log in and log out.
     */
@testdox A user can log in and log out.
@testdox A user can log in and log out .
public function auth()
    {
        $user = new User();
        $user->username = 'test';
        $user->save();
        \Auth::login($user);
        $this->assertTrue(\Auth::check());
        \Auth::logout();
        $this->assertFalse(\Auth::check());
    }
public function auth ( ) { $ user = new User ( ) ; $ user -> username = 'test' ; $ user -> save ( ) ; \ Auth :: login ( $ user ) ; $ this -> assertTrue ( \ Auth :: check ( ) ) ; \ Auth :: logout ( ) ; $ this -> assertFalse ( \ Auth :: check ( ) ) ; }
@testdox A user can log in and log out.
@testdox A user can log in and log out .