composer update
This commit is contained in:
parent
f6abc3dce2
commit
71dfaca858
1753 changed files with 45274 additions and 14619 deletions
|
@ -1,13 +1,12 @@
|
|||
<?php
|
||||
|
||||
namespace Masterminds\HTML5\Tests\Serializer;
|
||||
|
||||
use Masterminds\HTML5\Serializer\OutputRules;
|
||||
use Masterminds\HTML5\Serializer\Traverser;
|
||||
use Masterminds\HTML5\Parser;
|
||||
|
||||
class TraverserTest extends \Masterminds\HTML5\Tests\TestCase
|
||||
{
|
||||
|
||||
protected $markup = '<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
|
@ -28,7 +27,7 @@ class TraverserTest extends \Masterminds\HTML5\Tests\TestCase
|
|||
* Using reflection we make a protected method accessible for testing.
|
||||
*
|
||||
* @param string $name
|
||||
* The name of the method on the Traverser class to test.
|
||||
* The name of the method on the Traverser class to test
|
||||
*
|
||||
* @return \ReflectionMethod \ReflectionMethod for the specified method
|
||||
*/
|
||||
|
@ -51,7 +50,7 @@ class TraverserTest extends \Masterminds\HTML5\Tests\TestCase
|
|||
// We return both the traverser and stream so we can pull from it.
|
||||
return array(
|
||||
$t,
|
||||
$stream
|
||||
$stream,
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -84,7 +83,7 @@ class TraverserTest extends \Masterminds\HTML5\Tests\TestCase
|
|||
$t = new Traverser($dom, $stream, $r, $this->html5->getOptions());
|
||||
$t->walk();
|
||||
|
||||
$this->assertEquals($html, stream_get_contents($stream, - 1, 0));
|
||||
$this->assertEquals($html, stream_get_contents($stream, -1, 0));
|
||||
}
|
||||
|
||||
public function testFragment()
|
||||
|
@ -99,7 +98,7 @@ class TraverserTest extends \Masterminds\HTML5\Tests\TestCase
|
|||
$t = new Traverser($dom, $stream, $r, $this->html5->getOptions());
|
||||
$t->walk();
|
||||
|
||||
$this->assertEquals($html, stream_get_contents($stream, - 1, 0));
|
||||
$this->assertEquals($html, stream_get_contents($stream, -1, 0));
|
||||
}
|
||||
|
||||
public function testProcessorInstructionDeprecated()
|
||||
|
@ -116,7 +115,7 @@ class TraverserTest extends \Masterminds\HTML5\Tests\TestCase
|
|||
$t = new Traverser($dom, $stream, $r, $this->html5->getOptions());
|
||||
$t->walk();
|
||||
|
||||
$this->assertEquals($html, stream_get_contents($stream, - 1, 0));
|
||||
$this->assertEquals($html, stream_get_contents($stream, -1, 0));
|
||||
}
|
||||
|
||||
public function testProcessorInstruction()
|
||||
|
@ -132,6 +131,6 @@ class TraverserTest extends \Masterminds\HTML5\Tests\TestCase
|
|||
$t = new Traverser($dom, $stream, $r, $this->html5->getOptions());
|
||||
$t->walk();
|
||||
|
||||
$this->assertEquals($html, stream_get_contents($stream, - 1, 0));
|
||||
$this->assertEquals($html, stream_get_contents($stream, -1, 0));
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue