<?php public function it_can_suggest_bad_method_call_exceptions()
{
if (version_compare($this->app->version(), '5.6.3', '<')) {
$this->markTestSkipped('Laravel version < 5.6.3 do not support bad method call solutions');
}
<?php public function it_can_propose_a_solution_for_bad_method_call_exceptions_on_collections()
{
if (version_compare($this->app->version(), '5.6.3', '<')) {
$this->markTestSkipped('Laravel version < 5.6.3 do not support bad method call solutions');
}
<?php public function it_can_propose_a_solution_for_bad_method_call_exceptions_on_models()
{
if (version_compare($this->app->version(), '5.7', '<')) {
$this->markTestSkipped('Laravel version < 5.7.0 does not provide the actual called class for model exceptions.');
}
<?php public function it_can_solve_the_exception()
{
if (version_compare($this->app->version(), '5.6.3', '<')) {
$this->markTestSkipped('Laravel version < 5.6.3 do not support bad method call solutions');
}
<?php public function it_can_recommend_changing_the_rule($invalidRule, $recommendedRule)
{
if (version_compare($this->app->version(), '5.6.3', '<')) {
$this->markTestSkipped('Laravel version < 5.6.3 do not support bad method call solutions');
}