spec\SocialShare\SocialShareSpec::it_gets_link PHP Метод

    public function it_gets_link($provider)
    {
        $provider->getName()->willReturn('test')->shouldBeCalled();
        $provider->getLink('http://dunglas.fr', array())->willReturn('http://example.com')->shouldBeCalled();
        $this->registerProvider($provider);
        $this->getLink('test', 'http://dunglas.fr')->shouldReturn('http://example.com');
    }