File tree 1 file changed +31
-0
lines changed
src/Symfony/Component/PropertyAccess/Tests 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ /*
4
+ * This file is part of the Symfony package.
5
+ *
6
+ * (c) Fabien Potencier <fabien@symfony.com>
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 <robin.chalas@gmail.com
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
+ }
You can’t perform that action at this time.
0 commit comments