@@ -633,6 +633,10 @@ public function it_cannot_call_disallowed_builder_method()
633
633
/** @test */
634
634
public function it_can_call_named_scopes_on_model ()
635
635
{
636
+ if (version_compare (PHP_VERSION , '7.4.0 ' , '< ' )) {
637
+ $ this ->markTestSkipped ('This test may fail on PHP 7.3 due to AWS SDK compatibility issues ' );
638
+ }
639
+
636
640
$ connection = $ this ->newConnectionMock ();
637
641
$ connection ->shouldReceive ('clientQuery ' )->with ([
638
642
'TableName ' => 'User ' ,
@@ -659,6 +663,10 @@ public function it_can_call_named_scopes_on_model()
659
663
/** @test */
660
664
public function it_can_call_named_scopes_with_parameters_on_model ()
661
665
{
666
+ if (version_compare (PHP_VERSION , '7.4.0 ' , '< ' )) {
667
+ $ this ->markTestSkipped ('This test may fail on PHP 7.3 due to AWS SDK compatibility issues ' );
668
+ }
669
+
662
670
$ connection = $ this ->newConnectionMock ();
663
671
$ connection ->shouldReceive ('clientQuery ' )->with ([
664
672
'TableName ' => 'User ' ,
@@ -685,6 +693,10 @@ public function it_can_call_named_scopes_with_parameters_on_model()
685
693
/** @test */
686
694
public function it_can_chain_multiple_scopes ()
687
695
{
696
+ if (version_compare (PHP_VERSION , '7.4.0 ' , '< ' )) {
697
+ $ this ->markTestSkipped ('This test may fail on PHP 7.3 due to AWS SDK compatibility issues ' );
698
+ }
699
+
688
700
$ connection = $ this ->newConnectionMock ();
689
701
$ connection ->shouldReceive ('clientQuery ' )->with ([
690
702
'TableName ' => 'User ' ,
@@ -715,6 +727,10 @@ public function it_can_chain_multiple_scopes()
715
727
/** @test */
716
728
public function it_cannot_call_non_existent_scope_on_model ()
717
729
{
730
+ if (version_compare (PHP_VERSION , '7.4.0 ' , '< ' )) {
731
+ $ this ->markTestSkipped ('This test may fail on PHP 7.3 due to AWS SDK compatibility issues ' );
732
+ }
733
+
718
734
$ this ->expectException (BadMethodCallException::class);
719
735
720
736
UserA::nonExistentScope ();
0 commit comments