FirebaseServiceLogTest::testFirebaseLog()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Ghoubre\FirebaseServiceBundle\Tests\Model;
4
5
use Ghoubre\FirebaseServiceBundle\Model\FirebaseServiceLog;
6
7
use Symfony\Bundle\FrameworkBundle\Tests\TestCase;
8
9
class FirebaseServiceLogTest extends TestCase
10
{
11
12
    public function testServerKey()
13
    {
14
        $firebaseServiceLog = $this->getFirebase();
15
        $firebaseServiceLog->setServerKey("servey_key");
0 ignored issues
show
Bug introduced by
The method setServerKey() does not exist on PHPUnit\Framework\MockObject\MockObject. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

15
        $firebaseServiceLog->/** @scrutinizer ignore-call */ 
16
                             setServerKey("servey_key");

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...
16
        $this->assertEquals("servey_key", $firebaseServiceLog->getServerKey());
0 ignored issues
show
Bug introduced by
The method getServerKey() does not exist on PHPUnit\Framework\MockObject\MockObject. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

16
        $this->assertEquals("servey_key", $firebaseServiceLog->/** @scrutinizer ignore-call */ getServerKey());

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...
17
    }
18
19
    public function testBody()
20
    {
21
        $firebaseServiceLog = $this->getFirebase();
22
        $firebaseServiceLog->setBody("firebase_service_log_body");
0 ignored issues
show
Bug introduced by
The method setBody() does not exist on PHPUnit\Framework\MockObject\MockObject. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

22
        $firebaseServiceLog->/** @scrutinizer ignore-call */ 
23
                             setBody("firebase_service_log_body");

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...
23
        $this->assertEquals("firebase_service_log_body", $firebaseServiceLog->getBody());
0 ignored issues
show
Bug introduced by
The method getBody() does not exist on PHPUnit\Framework\MockObject\MockObject. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

23
        $this->assertEquals("firebase_service_log_body", $firebaseServiceLog->/** @scrutinizer ignore-call */ getBody());

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
26
    public function testStatus()
27
    {
28
        $firebaseServiceLog = $this->getFirebase();
29
        $firebaseServiceLog->setStatus(200);
0 ignored issues
show
Bug introduced by
The method setStatus() does not exist on PHPUnit\Framework\MockObject\MockObject. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

29
        $firebaseServiceLog->/** @scrutinizer ignore-call */ 
30
                             setStatus(200);

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...
30
        $this->assertEquals(200, $firebaseServiceLog->getStatus());
0 ignored issues
show
Bug introduced by
The method getStatus() does not exist on PHPUnit\Framework\MockObject\MockObject. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

30
        $this->assertEquals(200, $firebaseServiceLog->/** @scrutinizer ignore-call */ getStatus());

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...
31
    }
32
33
    public function testFirebaseLog()
34
    {
35
        $firebaseServiceLog = $this->getFirebase();
36
        $firebaseServiceLog->setFirebaseLog("firebase_service_log");
0 ignored issues
show
Bug introduced by
The method setFirebaseLog() does not exist on PHPUnit\Framework\MockObject\MockObject. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

36
        $firebaseServiceLog->/** @scrutinizer ignore-call */ 
37
                             setFirebaseLog("firebase_service_log");

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...
37
        $this->assertEquals("firebase_service_log", $firebaseServiceLog->getFirebaseLog());
0 ignored issues
show
Bug introduced by
The method getFirebaseLog() does not exist on PHPUnit\Framework\MockObject\MockObject. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

37
        $this->assertEquals("firebase_service_log", $firebaseServiceLog->/** @scrutinizer ignore-call */ getFirebaseLog());

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
    protected function getFirebase()
41
    {
42
        return $this->getMockForAbstractClass(FirebaseServiceLog::class);
43
    }
44
}
45