Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 63f3006

Browse files
jakzalfabpot
authored andcommitted
Removed underscores from test method names to be consistent with other components.
It is more common to use fully camel-cased names for test methods. Only some of the test methods are called with underscore notation. To avoid confusion it is better to be consistent.
1 parent be69ca1 commit 63f3006

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/Symfony/Component/PropertyAccess/Tests/PropertyPathTest.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,71 +27,71 @@ public function testToString()
2727
/**
2828
* @expectedException \Symfony\Component\PropertyAccess\Exception\InvalidPropertyPathException
2929
*/
30-
public function testInvalidPropertyPath_noDotBeforeProperty()
30+
public function testDotIsRequiredBeforeProperty()
3131
{
3232
new PropertyPath('[index]property');
3333
}
3434

3535
/**
3636
* @expectedException \Symfony\Component\PropertyAccess\Exception\InvalidPropertyPathException
3737
*/
38-
public function testInvalidPropertyPath_dotAtTheBeginning()
38+
public function testDotCannotBePresentAtTheBeginning()
3939
{
4040
new PropertyPath('.property');
4141
}
4242

4343
/**
4444
* @expectedException \Symfony\Component\PropertyAccess\Exception\InvalidPropertyPathException
4545
*/
46-
public function testInvalidPropertyPath_unexpectedCharacters()
46+
public function testUnexpectedCharacters()
4747
{
4848
new PropertyPath('property.$foo');
4949
}
5050

5151
/**
5252
* @expectedException \Symfony\Component\PropertyAccess\Exception\InvalidPropertyPathException
5353
*/
54-
public function testInvalidPropertyPath_empty()
54+
public function testPathCannotBeEmpty()
5555
{
5656
new PropertyPath('');
5757
}
5858

5959
/**
6060
* @expectedException \Symfony\Component\PropertyAccess\Exception\UnexpectedTypeException
6161
*/
62-
public function testInvalidPropertyPath_null()
62+
public function testPathCannotBeNull()
6363
{
6464
new PropertyPath(null);
6565
}
6666

6767
/**
6868
* @expectedException \Symfony\Component\PropertyAccess\Exception\UnexpectedTypeException
6969
*/
70-
public function testInvalidPropertyPath_false()
70+
public function testPathCannotBeFalse()
7171
{
7272
new PropertyPath(false);
7373
}
7474

75-
public function testValidPropertyPath_zero()
75+
public function testZeroIsValidPropertyPath()
7676
{
7777
new PropertyPath('0');
7878
}
7979

80-
public function testGetParent_dot()
80+
public function testGetParentWithDot()
8181
{
8282
$propertyPath = new PropertyPath('grandpa.parent.child');
8383

8484
$this->assertEquals(new PropertyPath('grandpa.parent'), $propertyPath->getParent());
8585
}
8686

87-
public function testGetParent_index()
87+
public function testGetParentWithIndex()
8888
{
8989
$propertyPath = new PropertyPath('grandpa.parent[child]');
9090

9191
$this->assertEquals(new PropertyPath('grandpa.parent'), $propertyPath->getParent());
9292
}
9393

94-
public function testGetParent_noParent()
94+
public function testGetParentWhenThereIsNoParent()
9595
{
9696
$propertyPath = new PropertyPath('path');
9797

0 commit comments

Comments
 (0)