Lines Matching refs:call
34 $call = new ApiCall([$this, 'dummyMethod1'], 'cat1');
37 $this->assertEquals('This is a test', $call->getSummary());
38 $this->assertEquals("With more information\nin several lines", $call->getDescription());
39 $args = $call->getArgs();
42 $docs = $call->getDocs();
46 $this->assertFalse($call->isPublic());
47 $call->setPublic();
48 $this->assertTrue($call->isPublic());
51 $this->assertEquals('cat1', $call->getCategory());
56 $call = new ApiCall('inlineSVG');
59 $args = $call->getArgs();
62 $docs = $call->getDocs();
66 $this->assertEquals('', $call->getCategory());
71 $call = new ApiCall([$this, 'dummyMethod1']);
74 $call(['bar', 1, ['molf'], 'haha', 'huhu']),
79 … $call(['foo' => 'bar', 'bar' => 1, 'baz' => ['molf'], 'boink' => 'haha', 'bonk' => 'huhu']),
85 $call(['bar', 1, ['molf']]),
90 $call(['foo' => 'bar', 'bar' => 1, 'baz' => ['molf']]),
95 $call(['foo' => 'bar', 'bar' => 1, 'baz' => ['molf'], 'nope' => 'egal']),
100 $call(['foo' => 'bar', 'bar' => 1, 'baz' => ['molf'], 'bonk' => 'huhu']),
104 $call = new ApiCall('date');
105 $this->assertEquals('2023-11-30', $call(['Y-m-d', 1701356591]), 'positional parameters');
106 …$this->assertEquals('2023-11-30', $call(['format' => 'Y-m-d', 'timestamp' => 1701356591]), 'named …
111 $call = new ApiCall([$this, 'dummyMethod1']);
113 $call(['bar']);
118 $call = new ApiCall([$this, 'dummyMethod1']);
120 $call(['foo' => 'bar', 'baz' => ['molf']]); // missing bar