You are here

public function OutputRulesTest::testNl 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::testNl()

File

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

Class

OutputRulesTest

Namespace

Masterminds\HTML5\Tests\Serializer

Code

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