/** * @param InterfaceUsage $interface */ public function addInterfaceUsage(InterfaceUsage $interface) { if (!isset($this->interfaceUsages[$interface->className()])) { $this->interfaceUsages[$interface->className()] = array(); } $this->interfaceUsages[$interface->className()][] = $interface; }
public function testGetClassName() { $interfaceUsage = new InterfaceUsage('interface', 'class', 0); $this->assertSame('class', $interfaceUsage->className()); }