From 6d09cf2c7370e1ce5a721e2b59327411048a12db Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Sun, 25 Oct 2020 06:56:03 +0200 Subject: [PATCH] Added extensions tests --- composer.json | 1 + tests/unit/General/ExtensionsTest.php | 112 ++++++++++++++++++++++++++ 2 files changed, 113 insertions(+) create mode 100644 tests/unit/General/ExtensionsTest.php diff --git a/composer.json b/composer.json index 7f3faed7e..4dde25f88 100644 --- a/composer.json +++ b/composer.json @@ -26,6 +26,7 @@ "ext-yaml": "*", "ext-dom": "*", "ext-redis": "*", + "ext-swoole": "*", "ext-pdo": "*", "ext-openssl": "*", "ext-zlib": "*", diff --git a/tests/unit/General/ExtensionsTest.php b/tests/unit/General/ExtensionsTest.php new file mode 100644 index 000000000..0c2a6bfe6 --- /dev/null +++ b/tests/unit/General/ExtensionsTest.php @@ -0,0 +1,112 @@ +assertEquals(true, extension_loaded('redis')); + } + + public function testSwoole() + { + $this->assertEquals(true, extension_loaded('swoole')); + } + + public function testYAML() + { + $this->assertEquals(true, extension_loaded('yaml')); + } + + public function testOPCache() + { + $this->assertEquals(true, extension_loaded('Zend OPcache')); + } + + public function testDOM() + { + $this->assertEquals(true, extension_loaded('dom')); + } + + public function testPDO() + { + $this->assertEquals(true, extension_loaded('PDO')); + } + + public function testImagick() + { + $this->assertEquals(true, extension_loaded('imagick')); + } + + public function testJSON() + { + $this->assertEquals(true, extension_loaded('json')); + } + + public function testCURL() + { + $this->assertEquals(true, extension_loaded('curl')); + } + + public function testMBString() + { + $this->assertEquals(true, extension_loaded('mbstring')); + } + + public function testOPENSSL() + { + $this->assertEquals(true, extension_loaded('openssl')); + } + + public function testZLIB() + { + $this->assertEquals(true, extension_loaded('zlib')); + } + + public function testSockets() + { + $this->assertEquals(true, extension_loaded('sockets')); + } +}