AuthProviderTest::testProviderNotFound()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * @copyright Bluz PHP Team
4
 * @link https://github.com/bluzphp/skeleton
5
 */
6
7
/**
8
 * @namespace
9
 */
10
namespace Application\Tests\Auth;
11
12
use Application\Auth\AuthProvider;
13
use Application\Tests\ControllerTestCase;
14
15
/**
16
 * @group   module-options
17
 *
18
 * @author  yuklia <[email protected]>
19
 * @package Application\Tests\Auth
20
 */
21
class AuthProviderTest extends ControllerTestCase
22
{
23
    /**
24
     * @expectedException \Exception
25
     */
26
    public function testProviderNotFound()
27
    {
28
        new AuthProvider('fake_data');
29
    }
30
31
    /**
32
     * @expectedException \Exception
33
     */
34
    public function testFailureHybridProvider()
35
    {
36
        $provider = new AuthProvider('olo');
37
        self::assertInstanceOf('\Hybrid_Provider_Adapter', $provider->authenticate('olo'));
0 ignored issues
show
Bug introduced by
The method authenticate() does not seem to exist on object<Application\Auth\AuthProvider>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
38
    }
39
}
40