1 | <?php |
||
7 | class FirebaseStubTest extends TestCase |
||
8 | { |
||
9 | protected $firebaseStub; |
||
10 | |||
11 | const DEFAULT_URL = 'https://firebaseStub.firebaseio.com/'; |
||
12 | const DEFAULT_TOKEN = 'MqL0c8tKCtheLSYcygBrIanhU8Z2hULOFs9OKPdEp'; |
||
13 | const DEFAULT_TIMEOUT = 10; |
||
14 | const DEFAULT_PATH = 'example/path'; |
||
15 | const DEFAULT_DATA = '{"firstName": "Howdy", "lastName": "Doody"}'; |
||
16 | const DEFAULT_PUSH_DATA = '{"firstName": "1skdSDdksdlisS"}'; |
||
17 | |||
18 | const UPDATED_URI = 'https://myfirebaseStub.firebaseio.com/'; |
||
19 | const UPDATED_TOKEN = 'MqL0c8tEmBeRLSYcygBrIanhU8Z2hULOFs9OKPdEp'; |
||
20 | const UPDATED_TIMEOUT = 30; |
||
21 | |||
22 | const INSECURE_URL = 'http://insecure.firebaseio.com'; |
||
23 | const INVALID_DATA = '"firstName" "Howdy", "lastName": "Doody" "": '; |
||
24 | const MISSING_DATA = ''; |
||
25 | const NULL_DATA = null; |
||
26 | |||
27 | public function setUp(): void |
||
31 | |||
32 | public function testBaseURIInitializationOnInstantiation(): void |
||
36 | |||
37 | public function testSetBaseURI(): void |
||
42 | |||
43 | public function testGetSSLConnection(): void |
||
48 | |||
49 | public function testTokenInitializationOnInstantiation(): void |
||
53 | |||
54 | public function testSetToken(): void |
||
59 | |||
60 | public function testTimeoutInitializationOnInstantiation(): void |
||
64 | |||
65 | public function testSetTimeout(): void |
||
70 | |||
71 | public function testSet(): void |
||
77 | |||
78 | public function testPush(): void |
||
84 | |||
85 | public function testUpdate(): void |
||
91 | |||
92 | public function testDelete(): void |
||
97 | } |
||
98 |
This check looks for function or method calls that always return null and whose return value is assigned to a variable.
The method
getObject()
can return nothing but null, so it makes no sense to assign that value to a variable.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.