Exemplo n.º 1
0
 /**
  * @group 67
  */
 public function testRaisesExceptionOnAttachForNonStreamResources()
 {
     $resource = $this->getResourceFor67();
     if (false === $resource) {
         $this->markTestSkipped('No acceptable resource available to test ' . __METHOD__);
     }
     $stream = new Stream(__FILE__);
     $this->setExpectedException('InvalidArgumentException', 'stream');
     $stream->attach($resource);
 }