PHP Classes

File: tests/Auth2Test.php

Recommend this page to a friend!
  Classes of Daniel   ohmy-auth   tests/Auth2Test.php   Download  
File: tests/Auth2Test.php
Role: Unit test script
Content type: text/plain
Description: Unit test script
Class: ohmy-auth
Obtain authorization to access APIs using OAuth
Author: By
Last change: Update of tests/Auth2Test.php
Date: 1 month ago
Size: 858 bytes


Class file image Download

 * Copyright (c) 2014, Yahoo! Inc. All rights reserved.
 * Copyrights licensed under the New BSD License.
 * See the accompanying LICENSE file for terms.

use ohmy\Auth2;

Auth2Test extends PHPUnit_Framework_TestCase {

    public function
setUp() {}
    public function
tearDown() {}
    public function
testInitThreeLegged() {
$phpunit = $this;
then(function($data) use($phpunit) {
$phpunit->assertArrayHasKey('client_id', $data);
$phpunit->assertArrayHasKey('client_secret', $data);
$phpunit->assertArrayHasKey('redirect_uri', $data);
$phpunit->assertArrayHasKey('code', $data);
$phpunit->assertArrayHasKey('scope', $data);
$phpunit->assertArrayHasKey('state', $data);