HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux ip-172-31-42-149 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025 aarch64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/vhost/disk-apps/agile-selling-wpb/vendor/cornford/googlmapper/spec/Models/LocationSpec.php
<?php

namespace spec\Cornford\Googlmapper\Models;

use Cornford\Googlmapper\Mapper;
use Cornford\Googlmapper\Models\Location;
use Mockery;
use PhpSpec\ObjectBehavior;

class LocationSpec extends ObjectBehavior
{
    private const INTEGER = 1;
    private const STRING = 'string';

    public function let()
    {
        $mapper = Mockery::mock(Mapper::class);
        $mapper->shouldReceive('map')->andReturn($mapper);
        $mapper->shouldReceive('streetview')->andReturn($mapper);

        $this->beConstructedWith([
            'mapper' => $mapper,
            'search' => self::STRING,
            'address' => self::STRING,
            'postalCode' => self::STRING,
            'type' => self::STRING,
            'latitude' => self::INTEGER,
            'longitude' => self::INTEGER,
            'placeId' => self::STRING
        ]);
    }

    public function it_is_initializable()
    {
        $this->shouldHaveType(Location::class);
    }

    public function it_can_create_a_map()
    {
        $this->map()->shouldReturnAnInstanceOf(Mapper::class);
    }

    public function it_can_create_a_streetview()
    {
        $this->streetview(self::INTEGER, self::INTEGER)->shouldReturnAnInstanceOf(Mapper::class);
    }
}