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

Skip to content

Commit 69cfb23

Browse files
committed
Add test for PropertyAccess
1 parent 35131b9 commit 69cfb23

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Symfony\Component\PropertyAccess\Tests;
13+
14+
use Symfony\Component\PropertyAccess\PropertyAccess;
15+
16+
/**
17+
* @author Robin Chalas <[email protected]
18+
*/
19+
class PropertyAccessTest extends \PHPUnit_Framework_TestCase
20+
{
21+
public function testCreatePropertyAccessor()
22+
{
23+
$this->assertInstanceOf('Symfony\Component\PropertyAccess\PropertyAccessor', PropertyAccess::createPropertyAccessor());
24+
}
25+
26+
public function testCreatePropertyAccessorWithExceptionOnInvalidIndex()
27+
{
28+
$this->assertInstanceOf('Symfony\Component\PropertyAccess\PropertyAccessor', PropertyAccess::createPropertyAccessor(true));
29+
}
30+
}

0 commit comments

Comments
 (0)