Knp\Bundle\KnpBundlesBundle\Entity\Bundle::getComposerName PHP Method

getComposerName() public method

Get Composer name
public getComposerName ( ) : string
return string
    public function getComposerName()
    {
        return $this->composerName;
    }

Usage Example

コード例 #1
0
ファイル: RepoTest.php プロジェクト: KnpLabs/KnpBundles
 public function testUpdateComposerSuccess()
 {
     $repoEntity = new Bundle('KnpLabs/KnpMenuBundle');
     $composer = json_decode(file_get_contents(__DIR__ . '/fixtures/encoded-composer.json'), true);
     $composer = base64_decode($composer['content']);
     $repo = $this->getRepo();
     $method = new \ReflectionMethod($repo, 'updateComposerFile');
     $method->setAccessible(true);
     $method->invokeArgs($repo, array($composer, $repoEntity));
     $this->assertEquals($repoEntity->getComposerName(), 'knplabs/knp-menu-bundle');
 }
All Usage Examples Of Knp\Bundle\KnpBundlesBundle\Entity\Bundle::getComposerName