2323use Hyperf \Database \Schema \Schema ;
2424use Hyperf \DbConnection \Db ;
2525use HyperfTest \Database \PgSQL \Stubs \ContainerStub ;
26+ use HyperfTest \Database \PgSQL \Stubs \SwooleVersionStub ;
2627use Mockery as m ;
2728use PHPUnit \Framework \Attributes \CoversNothing ;
2829use PHPUnit \Framework \TestCase ;
@@ -43,6 +44,7 @@ protected function tearDown(): void
4344
4445 public function testCreateDatabase ()
4546 {
47+ SwooleVersionStub::skipV6 ();
4648 $ grammar = new PostgresGrammar ();
4749
4850 $ connection = m::mock (Connection::class);
@@ -58,6 +60,7 @@ public function testCreateDatabase()
5860
5961 public function testDropDatabaseIfExists ()
6062 {
63+ SwooleVersionStub::skipV6 ();
6164 $ grammar = new PostgresGrammar ();
6265
6366 $ connection = m::mock (Connection::class);
@@ -72,6 +75,7 @@ public function testDropDatabaseIfExists()
7275
7376 public function testWhereFullText ()
7477 {
78+ SwooleVersionStub::skipV6 ();
7579 $ builder = $ this ->getPostgresBuilderWithProcessor ();
7680 $ builder ->select ('* ' )->from ('users ' )->whereFullText ('body ' , 'Hello World ' );
7781 $ this ->assertSame ('select * from "users" where (to_tsvector( \'english \', "body")) @@ plainto_tsquery( \'english \', ?) ' , $ builder ->toSql ());
@@ -110,6 +114,7 @@ public function testWhereFullText()
110114
111115 public function testWhereFullTextForReal ()
112116 {
117+ SwooleVersionStub::skipV6 ();
113118 $ container = ContainerStub::getContainer ();
114119 $ container ->shouldReceive ('get ' )->with (Db::class)->andReturn (new Db ($ container ));
115120
0 commit comments