File: tests/Adapter/GenericTest.php

Recommend this page to a friend!
  Classes of Scott Arciszewski  >  sapient  >  tests/Adapter/GenericTest.php  >  Download  
File: tests/Adapter/GenericTest.php
Role: Class source
Content type: text/plain
Description: Class source
Class: sapient
Add a security layer to server to server requests
Author: By
Last change:
Date: 3 years ago
Size: 591 bytes
 

Contents

Class file image Download
<?php
namespace ParagonIE\Sapient\UnitTests\Adapter;

use
ParagonIE\Sapient\Adapter\Generic\Adapter;
use
PHPUnit\Framework\TestCase;
use
Psr\Http\Message\StreamInterface;

class
GenericTest extends TestCase
{
   
/** @var Adapter */
   
protected $adapter;
   
/**
     * Populate the methods.
     */
   
public function setup()
    {
       
$this->adapter = new Adapter();
    }

   
/**
     * @covers Guzzle::stringToStream()
     */
   
public function testStringToStream()
    {
       
$this->assertInstanceOf(StreamInterface::class, $this->adapter->stringToStream('test'));
    }
}


For more information send a message to info at phpclasses dot org.