Lines Matching refs:this
37 $this->serviceClass = new ReflectionClass('Foo\GreeterInterface');
39 $this->namespacedServiceClass = new ReflectionClass('Bar\OtherGreeterInterface');
44 $this->assertTrue($this->serviceClass->isInterface());
49 $this->assertContains('foo.Greeter', $this->serviceClass->getDocComment());
54 $this->assertContains('foo.OtherGreeter', $this->namespacedServiceClass->getDocComment());
59 $this->assertCount(count($this->methodNames), $this->serviceClass->getMethods());
60 foreach ($this->methodNames as $methodName) {
61 $this->assertTrue($this->serviceClass->hasMethod($methodName));
67 foreach ($this->methodNames as $methodName) {
68 $docComment = $this->serviceClass->getMethod($methodName)->getDocComment();
69 $this->assertContains($methodName, $docComment);
70 $this->assertContains('@param \Foo\HelloRequest $request', $docComment);
71 $this->assertContains('@return \Foo\HelloReply', $docComment);
77 foreach ($this->methodNames as $methodName) {
78 $docComment = $this->namespacedServiceClass->getMethod($methodName)->getDocComment();
79 $this->assertContains($methodName, $docComment);
80 $this->assertContains('@param \Foo\HelloRequest $request', $docComment);
81 $this->assertContains('@return \Foo\HelloReply', $docComment);
87 foreach ($this->methodNames as $methodName) {
88 $method = $this->serviceClass->getMethod($methodName);
89 $this->assertCount(1, $method->getParameters());
91 $this->assertFalse($param->isOptional());
92 $this->assertSame('request', $param->getName());
94 $this->assertContains('Foo\HelloRequest $request', (string) $param);
100 foreach ($this->methodNames as $methodName) {
101 $method = $this->serviceClass->getMethod($methodName);
102 $this->assertCount(1, $method->getParameters());
104 $this->assertFalse($param->isOptional());
105 $this->assertSame('request', $param->getName());
107 $this->assertContains('Foo\HelloRequest $request', (string) $param);