Mercurial > hg > cmmr2012-drupal-site
comparison core/tests/Drupal/Tests/Component/Utility/ArgumentsResolverTest.php @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | c75dbcec494b |
children |
comparison
equal
deleted
inserted
replaced
3:307d7a7fd348 | 4:a9cd425dd02b |
---|---|
59 function ($foo) {}, [], ['foo' => NULL], [], [NULL], | 59 function ($foo) {}, [], ['foo' => NULL], [], [NULL], |
60 ]; | 60 ]; |
61 | 61 |
62 // Test with a raw value that overrides the provided upcast value, since | 62 // Test with a raw value that overrides the provided upcast value, since |
63 // it is not typehinted. | 63 // it is not typehinted. |
64 $scalars = ['foo' => 'baz']; | 64 $scalars = ['foo' => 'baz']; |
65 $objects = ['foo' => new \stdClass()]; | 65 $objects = ['foo' => new \stdClass()]; |
66 $data[] = [ | 66 $data[] = [ |
67 function ($foo) {}, $scalars, $objects, [], ['baz'], | 67 function ($foo) {}, $scalars, $objects, [], ['baz'], |
68 ]; | 68 ]; |
69 | 69 |
204 | 204 |
205 /** | 205 /** |
206 * Provides a test class. | 206 * Provides a test class. |
207 */ | 207 */ |
208 class TestClass { | 208 class TestClass { |
209 | |
209 public function access($foo) { | 210 public function access($foo) { |
210 } | 211 } |
211 | 212 |
212 } | 213 } |
213 | 214 |