PHPackages                             lamp-of-god/kahlan-isolator-plugin - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. lamp-of-god/kahlan-isolator-plugin

ActiveLibrary[Testing &amp; Quality](/categories/testing)

lamp-of-god/kahlan-isolator-plugin
==================================

Plugin for Kahlan unit-testing framework which allows to extract functions from PHP files.

v0.3.0(8y ago)02.7kMITPHP

Since Sep 11Pushed 8y ago1 watchersCompare

[ Source](https://github.com/lamp-of-god/kahlan-isolator-plugin)[ Packagist](https://packagist.org/packages/lamp-of-god/kahlan-isolator-plugin)[ RSS](/packages/lamp-of-god-kahlan-isolator-plugin/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

What is it?
===========

[](#what-is-it)

This plugin allows to 'require' functions from PHP files and skip other code.

What for?
=========

[](#what-for)

If you work with old legacy code, there are some situations when unit-testing is impossible, for example, when file contains not only functions but also side code. This plugin allows you to test isolated functions from files.

Example of case
===============

[](#example-of-case)

For example, you have controller:

```
