首页IT科技prices determine how resources阅读(The Definitive Guide to symfony | Chapter 15 Unit And Functional Testing | symfony | Web PHP Frame)

prices determine how resources阅读(The Definitive Guide to symfony | Chapter 15 Unit And Functional Testing | symfony | Web PHP Frame)

时间2025-06-20 23:13:23分类IT科技浏览4357
导读:The Lime Testing Framework There are many unit test frameworks in the PHP world, with the most well known being PhpUnit and SimpleTest. Symfony has its own, c...

The Lime Testing Framework

There are many unit test frameworks in the PHP world, with the most well known being PhpUnit and SimpleTest. Symfony has its own, called lime. It is based on the Test::More Perl library, and is TAP compliant, which means that the result of tests is displayed as specified in the Test Anything Protocol, designed for better readability of test output.

Lime provides support for unit testing. It is more lightweight than other PHP testing frameworks and has several advantages:

It launches test files in a sandbox to avoid strange side effects between each test run. Not all testing frameworks guarantee a clean environment for each test. Lime tests are very readable, and so is the test output. On compatible systems, lime uses color output in a smart way to distinguish important information. Symfony itself uses lime tests for regression testing, so many examples of unit and functional tests can be found in the symfony source code. The lime core is validated by unit tests. It is written in PHP, and it is fast and well coded. It is contained in a single file, lime.php, without any dependence.

The various tests described next use the lime syntax. They work out of the box with any symfony installation.

创心域SEO版权声明:以上内容作者已申请原创保护,未经允许不得转载,侵权必究!授权事宜、对本内容有异议或投诉,敬请联系网站管理员,我们将尽快回复您,谢谢合作!

展开全文READ MORE
局域网故障处理(局域网故障怎么排除?)