You are here

public function OutputRulesTest::testWr in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/masterminds/html5/test/HTML5/Serializer/OutputRulesTest.php \Masterminds\HTML5\Tests\Serializer\OutputRulesTest::testWr()

File

vendor/masterminds/html5/test/HTML5/Serializer/OutputRulesTest.php, line 367

Class

OutputRulesTest

Namespace

Masterminds\HTML5\Tests\Serializer

Code

public function testWr() {
  list($o, $s) = $this
    ->getOutputRules();
  $m = $this
    ->getProtectedMethod('wr');
  $m
    ->invoke($o, 'foo');
  $this
    ->assertEquals('foo', stream_get_contents($s, -1, 0));
}