File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ /*****************************************************************************
4+ *
5+ * PROJECT: MTA PHP SDK
6+ * LICENSE: See LICENSE in the top level directory
7+ * FILE: ResourceCallTest.php
8+ *
9+ * Multi Theft Auto is available from http://www.multitheftauto.com/
10+ *
11+ *****************************************************************************/
12+
13+ declare (strict_types=1 );
14+
15+ namespace MultiTheftAuto \Sdk \Model ;
16+
17+ use PHPUnit \Framework \TestCase ;
18+
19+ class ResourceCallTest extends TestCase
20+ {
21+ public function testItMakeACallToResourceInstance ()
22+ {
23+ $ functionName = 'getSomething ' ;
24+ $ firstParameter = 'firstParameter ' ;
25+ $ secondParameter = 'secondParameter ' ;
26+
27+ $ resource = $ this ->prophesize (Resource::class);
28+ $ resource
29+ ->call ($ functionName , $ firstParameter , $ secondParameter )
30+ ->shouldBeCalled ();
31+
32+ $ resourceCall = new ResourceCall ($ resource ->reveal ());
33+ $ resourceCall ->$ functionName ($ firstParameter , $ secondParameter );
34+ }
35+ }
You can’t perform that action at this time.
0 commit comments