Skip to content

Commit 72a5da4

Browse files
committed
Mark Database::ping as deprecated and ignore code coverage
1 parent 04c399a commit 72a5da4

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/Database.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,10 @@ public function close() : bool
322322
* Pings the server, or tries to reconnect if the connection has gone down.
323323
*
324324
* @return bool
325+
*
326+
* @deprecated
327+
*
328+
* @codeCoverageIgnore
325329
*/
326330
public function ping() : bool
327331
{

tests/DatabaseTest.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -258,11 +258,6 @@ public function testClose() : void
258258
self::assertTrue(static::$database->close());
259259
}
260260

261-
public function testPing() : void
262-
{
263-
self::assertTrue(static::$database->ping());
264-
}
265-
266261
public function testReconnect() : void
267262
{
268263
self::assertInstanceOf(Database::class, static::$database->reconnect());

0 commit comments

Comments
 (0)