diff --git a/tests/system/Database/Live/GetVersionTest.php b/tests/system/Database/Live/GetVersionTest.php new file mode 100644 index 0000000000..30f4729b29 --- /dev/null +++ b/tests/system/Database/Live/GetVersionTest.php @@ -0,0 +1,34 @@ + + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + +namespace CodeIgniter\Database\Live; + +use CodeIgniter\Test\CIUnitTestCase; +use CodeIgniter\Test\DatabaseTestTrait; + +/** + * @group DatabaseLive + * + * @internal + */ +final class GetVersionTest extends CIUnitTestCase +{ + use DatabaseTestTrait; + + protected $migrate = false; + + public function testGetVersion() + { + $version = $this->db->getVersion(); + + $this->assertMatchesRegularExpression('/\A\d+(\.\d+)*\z/', $version); + } +}