ackintosh/toumi
最新稳定版本:1.1
Composer 安装命令:
composer require ackintosh/toumi
包简介
Library to include the legacy code.
README 文档
README
A library for including legacy php file.
Usage
legacy.php
<?php function hoge($arg) { return 'hoge' . $arg; } somefunction(1234); function fuga() { $f = function () { echo 'fuga'; }; call_user_func($f); } var_dump(hoge('hogehoge')); exit;
<?php // Only function declaration is included. \Ackintosh\Toumi::load('legacy.php'); class LegacyTest extends PHPUnit_Framework_TestCase { /** * @test */ public function hoge() { $this->assertSame('hogefuga', hoge('fuga')); } }
Author
Akihito Nakano
统计信息
- 总下载量: 3.7k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-11-24