Ejemplo n.º 1
0
 public function testGetSourcesReturnsAssociativeArray()
 {
     $expected = ['stdlib' => ":git => 'https://github.com/puphpet/puppetlabs-stdlib.git'"];
     $result = $this->extension->getSources();
     $this->assertArrayHasKey('stdlib', $result);
     $this->assertEquals($expected['stdlib'], $result['stdlib']);
 }
Ejemplo n.º 2
0
 public function testGetSourcesReturnsEmptyArrayWhenSourcesEmpty()
 {
     $expected = [];
     $this->assertEquals($expected, $this->extension->getSources());
 }