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())); } }
protected function getLicenses() { $licenses = new \LicenseData\Repository(); return array_keys($licenses->getAll()); }