Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 8e73fee

Browse files
committed
Removing all reference to PHP_EOL in the tests too.
1 parent c2a11bb commit 8e73fee

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

test/Reflection/DocBlockReflectionTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,14 @@ public function testToString()
144144

145145
$classDocBlock = $classReflection->getDocBlock();
146146

147-
$expectedString = 'DocBlock [ /* DocBlock */ ] {' . PHP_EOL
148-
. PHP_EOL
149-
. ' - Tags [3] {' . PHP_EOL
150-
. ' DocBlock Tag [ * @author ]' . PHP_EOL
151-
. ' DocBlock Tag [ * @method ]' . PHP_EOL
152-
. ' DocBlock Tag [ * @property ]' . PHP_EOL
153-
. ' }' . PHP_EOL
154-
. '}' . PHP_EOL;
147+
$expectedString = 'DocBlock [ /* DocBlock */ ] {' . "\n"
148+
. "\n"
149+
. ' - Tags [3] {' . "\n"
150+
. ' DocBlock Tag [ * @author ]' . "\n"
151+
. ' DocBlock Tag [ * @method ]' . "\n"
152+
. ' DocBlock Tag [ * @property ]' . "\n"
153+
. ' }' . "\n"
154+
. '}' . "\n";
155155

156156
$this->assertEquals($expectedString, (string) $classDocBlock);
157157
}

test/Reflection/ReflectionDocBlockTagTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function testToString()
5050

5151
$tag = $classReflection->getMethod('doSomething')->getDocBlock()->getTag('descriptionTag');
5252

53-
$expectedString = 'DocBlock Tag [ * @descriptionTag ]' . PHP_EOL;
53+
$expectedString = 'DocBlock Tag [ * @descriptionTag ]' . "\n";
5454

5555
$this->assertEquals($expectedString, (string) $tag);
5656
}

test/Scanner/TestAsset/MapperExample/Mapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function setDbAdapter(DbAdapter $dbAdapter)
2525

2626
public function __toString()
2727
{
28-
return 'I am a ' . get_class($this) . ' object (hash ' . spl_object_hash($this) . '), using this dbAdapter ' . PHP_EOL . ' ' . $this->dbAdapter;
28+
return 'I am a ' . get_class($this) . ' object (hash ' . spl_object_hash($this) . '), using this dbAdapter ' . "\n" . ' ' . $this->dbAdapter;
2929
}
3030

3131
}

test/Scanner/TestAsset/MapperExample/RepositoryA.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function find(/* $entityCriterion */)
3737

3838
public function __toString()
3939
{
40-
return 'I am a ' . get_class($this) . ' object (hash ' . spl_object_hash($this) . '), using this mapper object ' . PHP_EOL . ' ' . $this->mapper;
40+
return 'I am a ' . get_class($this) . ' object (hash ' . spl_object_hash($this) . '), using this mapper object ' . "\n" . ' ' . $this->mapper;
4141
}
4242

4343
}

0 commit comments

Comments
 (0)