Skip to content

Commit e3ab52c

Browse files
committed
Fixed more typos
1 parent b596f77 commit e3ab52c

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

tests/AppBundle/Form/DataTransformer/TagArrayToStringTransformerTest.php

+14-7
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
use Doctrine\Common\Persistence\ObjectManager;
88
use Doctrine\ORM\EntityRepository;
99

10+
/**
11+
* Tests that tags are transformed correctly using the data transformer.
12+
*
13+
* See http://symfony.com/doc/current/testing/database.html
14+
*
15+
* @author Jonathan Boyer <[email protected]>
16+
*/
1017
class TagArrayToStringTransformerTest extends \PHPUnit\Framework\TestCase
1118
{
1219
/**
@@ -70,7 +77,7 @@ public function testCreateTheRightAmountOfTagsWithTooManyCommas()
7077
}
7178

7279
/**
73-
* Spaces at the end (and begining) of a world shouldn't matter.
80+
* Spaces at the end (and beginning) of a world shouldn't matter.
7481
*/
7582
public function testTrimNames()
7683
{
@@ -92,26 +99,26 @@ public function testDuplicateNames()
9299
*/
93100
public function testUsesAlreadyDefinedTags()
94101
{
95-
$persisted_tags = [
102+
$persistedTags = [
96103
$this->createTag('Hello'),
97104
$this->createTag('World'),
98105
];
99-
$tags = $this->getMockedTransformer($persisted_tags)->reverseTransform('Hello, World, How, Are, You');
106+
$tags = $this->getMockedTransformer($persistedTags)->reverseTransform('Hello, World, How, Are, You');
100107
$this->assertCount(5, $tags);
101-
$this->assertSame($persisted_tags[0], $tags[0]);
102-
$this->assertSame($persisted_tags[1], $tags[1]);
108+
$this->assertSame($persistedTags[0], $tags[0]);
109+
$this->assertSame($persistedTags[1], $tags[1]);
103110
}
104111

105112
/**
106113
* Tags should be transformed into a string.
107114
*/
108115
public function testTransform()
109116
{
110-
$persisted_tags = [
117+
$persistedTags = [
111118
$this->createTag('Hello'),
112119
$this->createTag('World'),
113120
];
114-
$transformed = $this->getMockedTransformer()->transform($persisted_tags);
121+
$transformed = $this->getMockedTransformer()->transform($persistedTags);
115122
$this->assertSame('Hello,World', $transformed);
116123
}
117124
}

0 commit comments

Comments
 (0)