コード例 #1
0
 public function testFlowSet()
 {
     $phpunit = $this;
     $flow = new Auth1Flow(function ($resolve) {
         $resolve(array());
     });
     $flow->set('foo', 'bar')->then(function ($data) use($phpunit) {
         $phpunit->assertArrayHasKey('foo', $data);
     });
 }
コード例 #2
0
ファイル: ThreeLegged.php プロジェクト: btafoya/ohmy-auth
 public function __construct($callback, Http $client = null, Session $session = null)
 {
     parent::__construct($callback);
     $this->client = $client;
     $this->session = $session;
 }
コード例 #3
0
ファイル: TwoLegged.php プロジェクト: btafoya/ohmy-auth
 public function __construct($callback, Http $client = null)
 {
     parent::__construct($callback);
     $this->client = $client;
 }