Searched refs:willReturn (Results 1 – 17 of 17) sorted by relevance
30 ->willReturn(true);54 ->willReturn(false);58 ->willReturn($output);62 ->willReturn($errorOutput);66 ->willReturn($exitCode);70 ->willReturn($exitText);74 ->willReturn(false);102 ->willReturn(false);112 ->willReturn($exitCode);116 ->willReturn($exitText);[all …]
26 $visitor->method('visitArray')->with(['foo'])->willReturn(['foo']);44 $visitor->method('visitArray')->with([])->willReturn([]);49 …$factoryMock->method('getMetadataForClass')->willReturn(new ClassMetadata(ArrayCollection::class));51 $context->method('getExclusionStrategy')->willReturn(new AlwaysExcludeExclusionStrategy());52 $context->method('getMetadataFactory')->willReturn($factoryMock);
161 $formError->expects($this->once())->method('getMessageTemplate')->willReturn('error!');162 $formError->expects($this->once())->method('getMessagePluralization')->willReturn(null);163 $formError->expects($this->once())->method('getMessageParameters')->willReturn([]);185 $formError->expects($this->once())->method('getMessageTemplate')->willReturn('error!');186 $formError->expects($this->exactly(2))->method('getMessagePluralization')->willReturn(0);187 $formError->expects($this->once())->method('getMessageParameters')->willReturn([]);208 $formError->expects($this->once())->method('getMessageTemplate')->willReturn('error!');209 $formError->expects($this->once())->method('getMessagePluralization')->willReturn(null);210 $formError->expects($this->once())->method('getMessageParameters')->willReturn([]);232 $formError->expects($this->once())->method('getMessageTemplate')->willReturn('error!');[all …]
86 $visitor->method('visitArray')->with(self::DATA)->willReturn(self::DATA);93 $visitor->method('visitArray')->with(self::DATA)->willReturn(self::DATA);
51 … $this->context->method('getExclusionStrategy')->willReturn(new AlwaysExcludeExclusionStrategy());52 …$this->context->method('getMetadataFactory')->willReturn(new class implements MetadataFactoryInter…83 … $factoryMock->method('getMetadataForClass')->willReturn(new ClassMetadata(SimpleObject::class));85 … $this->context->method('getExclusionStrategy')->willReturn(new AlwaysExcludeExclusionStrategy());86 $this->context->method('getMetadataFactory')->willReturn($factoryMock);
22 $container->expects($this->once())->method('has')->with('stdClass')->willReturn(true);23 … $container->expects($this->once())->method('get')->with('stdClass')->willReturn(new \stdClass());
28 $this->context->method('getObject')->willReturn($this->visitedObject);49 ->willReturn(true);
12 ->willReturn(1);25 ->willReturn(1, 2, 3);
137 $prophecy->read('123')->willReturn('value');188 $user->getName()->willReturn(null);192 $this->getName()->willReturn('everzet');257 $user->getName()->willReturn(null);261 $this->getName()->willReturn($args[0]);266 $user->getName()->willReturn($args[0]);271 $user->getName()->willReturn($args[0]);284 $user->getName()->willReturn(null);288 $this->getName()->willReturn($args[0]);293 $user->getName()->willReturn($args[0]);[all …]
23 $o->method('foo')->willReturn(1);
171 public function willReturn() function in Prophecy\\Prophecy\\MethodProphecy316 $this->willReturn();
108 $fallback->expects($this->once())->method('construct')->willReturn($author);123 $fallback->expects($this->once())->method('construct')->willReturn($author);184 $fallback->expects($this->once())->method('construct')->willReturn($author);
98 ->willReturn('testing');
207 ->willReturn('something');1002 $mock->method('__toString')->willReturn('foo');
93 public function willReturn($value, ...$nextValues) function in PHPUnit_Framework_MockObject_Builder_InvocationMocker
72 ->willReturn(['name' => 'DateTimeImmutable', 'params' => [2 => 'd-Y-m']]);
1484 $o->method($method)->willReturn($return);