Пример #1
0
 function Test_of_foreignKey()
 {
     foreach ($this->ClassNameToForeignKeyWithUnderscore as $class => $foreign_key) {
         $this->assertEqual($foreign_key, AkInflector::foreignKey($class));
     }
     foreach ($this->ClassNameToForeignKeyWithoutUnderscore as $class => $foreign_key) {
         $this->assertEqual($foreign_key, AkInflector::foreignKey($class, false));
     }
 }