Ejemplo n.º 1
0
 public function testDoesNotThrowInToString()
 {
     $s = \RingCentral\Psr7\stream_for('foo');
     $s = new NoSeekStream($s);
     $this->assertEquals('foo', (string) $s);
 }
 /**
  * @expectedException \InvalidArgumentException
  * @expectedExceptionMessage Content-Type header was not provided and cannot be auto-discovered
  */
 public function testStreamWithUnknownExtension()
 {
     $builder = new MultipartBuilder();
     $builder->setBody(array('to' => array('phoneNumber' => 'foo'), 'faxResolution' => 'High'))->setBoundary('boundary')->add(\RingCentral\Psr7\stream_for('streamed'), 'streamed');
 }