expect("The supplied array should be encoded as JSON and set on the View obj", $this->assertEquals($data, json_decode($view->json[$view::POS_READY][$key], true)));
Are you sure the usage of $this->assertEquals($dat...OS_READY][$key], true)) targeting PHPUnit\Framework\Assert::assertEquals() seems to always return null.
This check looks for function or method calls that always return null and whose
return value is used.
expect("If no key is supplied it should default to the md5 of the json_encoded data", $this->assertArrayHasKey($expected_key, $view->json[$view::POS_READY]));
Are you sure the usage of $this->assertArrayHasKey...json[$view::POS_READY]) targeting PHPUnit\Framework\Assert::assertArrayHasKey() seems to always return null.
This check looks for function or method calls that always return null and whose
return value is used.
The method getObject() can return nothing but null, so it makes no sense
to use the return value.
The reason is most likely that a function or method is imcomplete or has been
reduced for debug purposes.
Loading history...
35
expect("If no key is supplied it should default to the md5 of the json_encoded data", $this->assertEquals(json_encode($data, true), $view->json[$view::POS_READY][$expected_key]));
Are you sure the usage of $this->assertEquals(json..._READY][$expected_key]) targeting PHPUnit\Framework\Assert::assertEquals() seems to always return null.
This check looks for function or method calls that always return null and whose
return value is used.
This check looks for function or method calls that always return null and whose return value is used.
The method
getObject()
can return nothing but null, so it makes no sense to use the return value.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.