assertTrue(is_assoc_array(Config::getExts())); } /** * @throws FileSystemException * @throws WrongUsageException */ public function testGetLib() { $this->assertIsArray(Config::getLib('zlib')); match (PHP_OS_FAMILY) { 'FreeBSD', 'Darwin', 'Linux' => $this->assertStringEndsWith('.a', Config::getLib('zlib', 'static-libs', [])[0]), 'Windows' => $this->assertStringEndsWith('.lib', Config::getLib('zlib', 'static-libs', [])[0]), default => null, }; } /** * @throws WrongUsageException * @throws FileSystemException */ public function testGetExt() { $this->assertIsArray(Config::getExt('bcmath')); $this->assertEquals('builtin', Config::getExt('bcmath', 'type')); } /** * @throws FileSystemException */ public function testGetSources() { $this->assertTrue(is_assoc_array(Config::getSources())); } /** * @throws FileSystemException */ public function testGetSource() { $this->assertIsArray(Config::getSource('php-src')); } /** * @throws FileSystemException */ public function testGetLibs() { $this->assertTrue(is_assoc_array(Config::getLibs())); } }