login() публичный Метод

Login as pinner.
public login ( string $username, string $password, boolean $autoLogin = true ) : boolean
$username string
$password string
$autoLogin boolean
Результат boolean
Пример #1
0
 /** @test */
 public function it_should_return_false_when_login_fails()
 {
     $this->setIsLoggedInExpectation(false);
     $this->request->shouldReceive('getHttpClient')->andReturn(new CurlHttpClient(new Cookies()));
     $this->apiShouldReturnError();
     $this->request->shouldReceive('clearToken');
     $this->assertFalse($this->provider->login('test', 'test', false));
 }