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

Skip to content

Commit 8eb11fc

Browse files
committed
©Add test for PropertyAccess
1 parent 35131b9 commit 8eb11fc

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
use Symfony\Component\PropertyAccess\PropertyAccessor;
16+
17+
/**
18+
* @author Robin Chalas <[email protected]
19+
*/
20+
class PropertyAccessTest extends \PHPUnit_Framework_TestCase
21+
{
22+
public function testCreatePropertyAccessor()
23+
{
24+
$this->assertInstanceOf(PropertyAccessor::class, PropertyAccess::createPropertyAccessor());
25+
}
26+
27+
public function testCreatePropertyAccessorWithExceptionOnInvalidIndex()
28+
{
29+
$this->assertInstanceOf(PropertyAccessor::class, PropertyAccess::createPropertyAccessor(true));
30+
}
31+
}

0 commit comments

Comments
 (0)