更多>
最新下载
24小时阅读排行榜
- 1 Tiktok在线免费观看网址 Tiktok在线免费观看入口
- 2 Golang使用Chi框架简化路由管理实践
- 3 Golang容器镜像构建优化与缓存技巧
- 4 Java中抽象方法和接口方法的区别
- 5 vmware怎么安装_vmware虚拟机软件安装与配置使用教程
- 6 Python 类方法与静态方法的用法
- 7 微信朋友圈的视频怎么下载保存_微信朋友圈视频下载到本地方法
- 8 StackExchange API:高效获取问题主体内容的实用指南
- 9 win10开机chkdsk磁盘检查怎么跳过_win10跳过开机chkdsk磁盘检查的方法
- 10 PHP动态网页数据库备份恢复_PHP动态网页MySQL数据库备份教程
- 11 Java中接口的本质和使用价值
- 12 win11怎么将网络配置文件从公用更改为专用_Win11网络类型公用转专用设置方法
- 13 Postman响应JSON数据迭代与条件存储全局变量教程
- 14 Golang微服务调用链追踪与分析方法
- 15 学习通app作业提交了老师能看到吗_学习通作业提交状态与教师端视角解析
更多>
最新教程
-
- Node.js 教程
- 2679 2025-08-28
-
- CSS3 教程
- 258895 2025-08-27
-
- Rust 教程
- 3219 2025-08-27
-
- Vue 教程
- 3923 2025-08-22
-
- PostgreSQL 教程
- 4074 2025-08-21
-
- Git 教程
- 3164 2025-08-21
下载首页 / 类库下载 / 其它类库
大家都知道,有很多方法可以进行标记解析,今天我们就带来利用轻量级的标记来解析的PHP库,一起来看一下。
<?php namespace Decoda; use Decoda\Decoda; use Decoda\Loader\FileLoader; use Decoda\Test\TestCase; use Decoda\Test\TestComponent; class ComponentTest extends TestCase { protected function setUp() { parent::setUp(); $this->object = new TestComponent(array('key' => 'value')); } public function testAddGetLoaders() { $this->assertEquals(0, count($this->object->getLoaders())); $this->object->addLoader(new FileLoader(TEST_DIR . '/config/test.php')); $this->assertEquals(1, count($this->object->getLoaders())); } public function testGetSetConfig() { $this->assertEquals('value', $this->object->getConfig('key')); $this->assertEquals(null, $this->object->getConfig('foobar')); $this->object->setConfig(array('key' => 'foo')); $this->assertEquals('foo', $this->object->getConfig('key')); } public function testGetSetParser() { $this->assertEquals(null, $this->object->getParser()); $this->object->setParser(new Decoda()); $this->assertInstanceOf('Decoda\Decoda', $this->object->getParser()); } public function testMessage() { $this->object->setParser(new Decoda()); $this->assertEquals('Quote by {author}', $this->object->message('quoteBy')); } }


本站所有资源都是由网友投搞发布,或转载各大下载站,请自行检测软件的完整性!本站所有资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!如有侵权请联系我们删除下架,联系方式:admin@php.cn