Ejemplo n.º 1
0
 /**
  * @dataProvider lengthProvider
  */
 public function testLength($expected, $headers)
 {
     $this->init(0);
     $this->server->httpRequest = new \Sabre\HTTP\Request(null, null, $headers);
     $length = $this->plugin->getLength();
     $this->assertEquals($expected, $length);
 }
Ejemplo n.º 2
0
 /**
  * @dataProvider lengthProvider
  */
 public function testLength($expected, $headers)
 {
     $this->init(0);
     $this->plugin->expects($this->never())->method('getFileChunking');
     $this->server->httpRequest = new \Sabre\HTTP\Request(null, null, $headers);
     $length = $this->plugin->getLength();
     $this->assertEquals($expected, $length);
 }