示例#1
0
文件: StreamTest.php 项目: rusnak/Ext
 /**
  * @test
  */
 public function getMetadataIsValidType()
 {
     $metadata = $this->_listenStream->getMetadata();
     $this->assertInternalType('array', $metadata);
     $this->assertArrayHasKey('timed_out', $metadata);
     $this->assertArrayHasKey('blocked', $metadata);
     $this->assertArrayHasKey('eof', $metadata);
     $this->assertArrayHasKey('unread_bytes', $metadata);
 }