public function testLoadVendorDatabaseFromFile() { // Clear database first to ensure that data actually gets loaded MacAddress::loadVendorDatabase(array()); // Pass default database. It should load without errors. MacAddress::loadVendorDatabaseFromFile(\Library\Module::getPath('data/MacAddress/manuf')); $this->assertAttributeNotEmpty('_vendorList', 'Library\\MacAddress'); }
public function testLoadVendorDatabaseFromFile() { // Clear database first to ensure that data actually gets loaded MacAddress::loadVendorDatabase(array()); // Pass default database. It should load without errors. MacAddress::loadVendorDatabaseFromFile(\Library\Module::getPath('data/MacAddress/manuf')); $reflectionClass = new \ReflectionClass('Library\\MacAddress'); $this->assertNotEmpty($reflectionClass->getStaticProperties()['_vendorList']); }