Skip to content

Commit 52d2f4a

Browse files
Removed support for swoole 4.x (#5813)
Co-authored-by: 李铭昕 <[email protected]>
1 parent a111fa0 commit 52d2f4a

File tree

3 files changed

+2
-16
lines changed

3 files changed

+2
-16
lines changed

tests/Cases/DatabasePostgresBuilderTest.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,8 @@ class DatabasePostgresBuilderTest extends TestCase
3535
{
3636
protected function tearDown(): void
3737
{
38-
if (SWOOLE_MAJOR_VERSION >= 5) {
39-
ContainerStub::getContainer();
40-
Schema::dropIfExists('test_full_text_index');
41-
}
38+
ContainerStub::getContainer();
39+
Schema::dropIfExists('test_full_text_index');
4240
m::close();
4341
}
4442

@@ -111,10 +109,6 @@ public function testWhereFullText()
111109

112110
public function testWhereFullTextForReal()
113111
{
114-
if (SWOOLE_MAJOR_VERSION < 5) {
115-
$this->markTestSkipped('PostgreSql requires Swoole version >= 5.0.0');
116-
}
117-
118112
$container = ContainerStub::getContainer();
119113
$container->shouldReceive('get')->with(Db::class)->andReturn(new Db($container));
120114

tests/Cases/PostgreSqlSwooleExtConnectionTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ class PostgreSqlSwooleExtConnectionTest extends TestCase
3838

3939
public function setUp(): void
4040
{
41-
if (SWOOLE_MAJOR_VERSION < 5) {
42-
$this->markTestSkipped('PostgreSql requires Swoole version >= 5.0.0');
43-
}
44-
4541
$resolver = ContainerStub::getContainer()->get(ConnectionResolverInterface::class);
4642

4743
$this->migrator = new Migrator(

tests/DBAL/ConnectionTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ class ConnectionTest extends TestCase
2929

3030
public function setUp(): void
3131
{
32-
if (SWOOLE_MAJOR_VERSION < 5) {
33-
$this->markTestSkipped('PostgreSql requires Swoole version >= 5.0.0');
34-
}
35-
3632
$pgsql = new PostgreSQL();
3733
$connected = $pgsql->connect('host=127.0.0.1 port=5432 dbname=postgres user=postgres password=postgres');
3834
if (! $connected) {

0 commit comments

Comments
 (0)