/** * @test */ public function itShouldNotAddReturnTypeHintIfOneIsNotFound() { $targetClass = DefinedTargetClass::factory('Mockery\\Test\\Generator\\StringManipulation\\Pass\\MagicReturnDummy'); $this->mockedConfiguration->shouldReceive('getTargetClass')->andReturn($targetClass)->byDefault(); $code = $this->pass->apply('public static function __isset($parameter) {}', $this->mockedConfiguration); $this->assertContains(') {', $code); }