/**
  * testBuilderCreatesCaseInSensitiveInterfaceIdentifiers
  *
  * @return void
  */
 public function testBuilderCreatesCaseInSensitiveInterfaceIdentifiers()
 {
     $compilationUnit = new ASTCompilationUnit(__FILE__);
     $compilationUnit->setId(__FUNCTION__);
     $interface0 = new ASTInterface(__FUNCTION__);
     $interface0->setCompilationUnit($compilationUnit);
     $interface1 = new ASTInterface(strtolower(__FUNCTION__));
     $interface1->setCompilationUnit($compilationUnit);
     $builder0 = new IdBuilder();
     $builder1 = new IdBuilder();
     $this->assertEquals($builder0->forClassOrInterface($interface0), $builder1->forClassOrInterface($interface1));
 }
 /**
  * Creates an abstract item instance.
  *
  * @return \PDepend\Source\AST\ASTInterface
  */
 protected function createItem()
 {
     $interface = new ASTInterface(__CLASS__);
     $interface->setCompilationUnit(new ASTCompilationUnit(__FILE__));
     $interface->setCache(new MemoryCacheDriver());
     $interface->setContext($this->getMock('PDepend\\Source\\Builder\\BuilderContext'));
     return $interface;
 }
 /**
  * Creates a ready to use interface fixture.
  *
  * @param string $name Optional interface name.
  *
  * @return \PDepend\Source\AST\ASTInterface
  * @since 1.0.2
  */
 protected function createInterfaceFixture($name = null)
 {
     $name = $name ? $name : get_class($this);
     $interface = new ASTInterface($name);
     $interface->setCompilationUnit(new ASTCompilationUnit($GLOBALS['argv'][0]));
     $interface->setCache(new MemoryCacheDriver());
     return $interface;
 }