1 Star 3 Fork 26

yg178/php-console

forked from inhere/php-console 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
ApplicationTest.php 673 Bytes
一键复制 编辑 原始数据 按行查看 历史
inhere 提交于 2018-01-31 00:06 +08:00 . new: add error handle
<?php
use Inhere\Console\IO\InputInterface;
use Inhere\Console\IO\OutputInterface;
use PHPUnit\Framework\TestCase;
use Inhere\Console\Application;
/**
* @covers Application
*/
class ApplicationTest extends TestCase
{
public function testApp()
{
$app = new Application([
'name' => 'Tests',
'debug' => 1,
'version' => '1.0.0',
]);
$this->assertArrayHasKey('name', $app->getMeta());
$this->assertEquals('Tests', $app->getMeta('name'));
$this->assertInstanceOf(InputInterface::class, $app->getInput());
$this->assertInstanceOf(OutputInterface::class, $app->getOutput());
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/hwsyy/php-console.git
git@gitee.com:hwsyy/php-console.git
hwsyy
php-console
php-console
master

搜索帮助