EvernoteAuthTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
c 1
b 0
f 1
lcom 0
cbo 1
dl 0
loc 23
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A EvernoteAuthPage() 0 6 1
A EvernoteAuthCallBackPage() 0 5 1
1
<?php
2
3
class EvernoteAuthTest extends FunctionalTest {
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
4
5
    /**
6
     * @test
7
     * Test login using Evernote
8
     */
9
    public function EvernoteAuthPage() {
10
        $page = $this->get('evernote-auth/login');
11
12
        $this->assertEquals(200, $page->getStatusCode());
0 ignored issues
show
Bug introduced by
The method assertEquals() does not seem to exist on object<EvernoteAuthTest>.

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...
13
        // We should get redirected to evernote authorization url
14
    }
15
16
    /**
17
     * @test
18
     * Test login using Evernote
19
     */
20
    public function EvernoteAuthCallBackPage() {
21
        $page = $this->get('evernote-auth/callback');
22
23
        $this->assertEquals(200, $page->getStatusCode());
0 ignored issues
show
Bug introduced by
The method assertEquals() does not seem to exist on object<EvernoteAuthTest>.

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...
24
    }
25
}