PhpBench\Tests\Unit\Vcs\Detector\SupplierTest::testApplicableProviders PHP Метод

testApplicableProviders() публичный Метод

It should return information from both the providers.
    public function testApplicableProviders()
    {
        $this->supplier->addProvider($this->provider1->reveal());
        $this->supplier->addProvider($this->provider2->reveal());
        $this->provider1->isApplicable()->willReturn(true);
        $this->provider2->isApplicable()->willReturn(true);
        $this->provider1->getInformation()->willReturn($this->information1->reveal());
        $this->provider2->getInformation()->willReturn($this->information2->reveal());
        $result = $this->supplier->getInformations();
        $this->assertSame([$this->information1->reveal(), $this->information2->reveal()], $result);
    }