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

Skip to content

Commit 60cf0aa

Browse files
committed
merged branch jakzal/no-underscored-methods-in-tests-master (PR #6885)
This PR was submitted for the master branch but it was merged into the 2.2 branch instead (closes #6885). Commits ------- c5d15f8 [PropertyAccess] Removed underscores from test method names to be consistent with other components. Discussion ---------- [PropertyAccess] Removed underscores from test method names Removed underscores from test method names to be consistent with other components. This was previously done in #6695, but was partly lost when merging with master (PropertyAccess component was created, so the location of tests has changed). | Q | A | |--------------|--------------------------------| | Bug fix? | no | |New feature? | no | |BC breaks? | no | |Deprecations? | no | |Tests pass? | yes | |Fixed tickets | n/a | |License | MIT | |Doc PR | n/a |
2 parents be69ca1 + 63f3006 commit 60cf0aa

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)