【文件属性】:
文件名称:面向对象流包装的PHP库.zip
文件大小:13KB
文件格式:ZIP
更新时间:2022-07-31 04:33:25
类库下载-面向对象流包装的PHP库
<?php
namespace Streamer\Test;
use Streamer\Stream;
class StreamTest extends \PHPUnit_Framework_TestCase
{
/**
* @expectedException Streamer\Exception\InvalidArgumentException
*/
public function testConstructorRequiresAValidResource()
{
$stream = new Stream('hello');
}
public function testGetResourceReturnsThePHPResource()
{
$handle = fopen('php://temp', 'r ');
$stream = new Stream($handle);
$this->assertEquals($handle, $stream->getResource());
}面向对象(Object Oriented,OO)是软件开发方法。面向对象的概念和应用已超越了程序设计和软件开发,扩展到如数据库系统、交互式界面、应用结构、应用平台、分布式系统、网络管理结构、CAD技术、人工智能等领域。面向对象是一种对现实世界理解和抽象的方法,是计算机编程技术发展到一定阶段后的产物。
【文件预览】:
面向对象流包装的PHP库
----php中文网下载站.url(114B)
----php中文网免费下载站.txt(219B)
----Streamer-master()
--------.gitignore(35B)
--------README.md(2KB)
--------Streamer()
--------tests()
--------LICENSE(1KB)
--------composer.json(346B)
--------phpunit.xml.dist(549B)