예제 #1
0
 function testValidReferences()
 {
     $licenses = new \LicenseData\Repository();
     $all = $licenses->getAll();
     $this->assertTrue(count($all) > 1);
     foreach ($all as $key => $license) {
         $this->assertEquals($key, $license->getName());
         $this->assertTrue(self::notEmpty($license->getName()));
         $this->assertTrue(self::notEmpty($license->getTitle()));
         $this->assertTrue(self::notEmpty($license->getText()));
         $this->assertTrue(self::notEmpty($license->getUrl()));
     }
 }
예제 #2
0
 protected function getLicenses()
 {
     $licenses = new \LicenseData\Repository();
     return array_keys($licenses->getAll());
 }