You are here

private function Framework_ConstraintTest::trimnl in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/tests/Framework/ConstraintTest.php \Framework_ConstraintTest::trimnl()

Removes spaces in front of newlines

Parameters

string $string:

Return value

string

5 calls to Framework_ConstraintTest::trimnl()
Framework_ConstraintTest::testConstraintIsEqual2 in vendor/phpunit/phpunit/tests/Framework/ConstraintTest.php
@dataProvider isEqualProvider @covers PHPUnit_Framework_Constraint_IsEqual @covers PHPUnit_Framework_Assert::equalTo @covers PHPUnit_Framework_TestFailure::exceptionToString
Framework_ConstraintTest::testConstraintIsNotIdentical in vendor/phpunit/phpunit/tests/Framework/ConstraintTest.php
@covers PHPUnit_Framework_Constraint_IsIdentical @covers PHPUnit_Framework_Constraint_Not @covers PHPUnit_Framework_Assert::identicalTo @covers PHPUnit_Framework_Assert::logicalNot @covers PHPUnit_Framework_TestFailure::exceptionToString
Framework_ConstraintTest::testConstraintIsNotIdentical3 in vendor/phpunit/phpunit/tests/Framework/ConstraintTest.php
@covers PHPUnit_Framework_Constraint_IsIdentical @covers PHPUnit_Framework_Constraint_Not @covers PHPUnit_Framework_Assert::identicalTo @covers PHPUnit_Framework_Assert::logicalNot @covers PHPUnit_Framework_TestFailure::exceptionToString
Framework_ConstraintTest::testConstraintIsType in vendor/phpunit/phpunit/tests/Framework/ConstraintTest.php
@covers PHPUnit_Framework_Constraint_IsType @covers PHPUnit_Framework_Assert::isType @covers PHPUnit_Framework_Constraint::count @covers PHPUnit_Framework_TestFailure::exceptionToString
Framework_ConstraintTest::testConstraintIsType2 in vendor/phpunit/phpunit/tests/Framework/ConstraintTest.php
@covers PHPUnit_Framework_Constraint_IsType @covers PHPUnit_Framework_Assert::isType @covers PHPUnit_Framework_TestFailure::exceptionToString

File

vendor/phpunit/phpunit/tests/Framework/ConstraintTest.php, line 3486

Class

Framework_ConstraintTest
@since Class available since Release 3.0.0

Code

private function trimnl($string) {
  return preg_replace('/[ ]*\\n/', "\n", $string);
}