public function setUp()
 {
     parent::setUp();
     $this->classUseNameService = Phake::mock('EdpSuperluminal\\ClassDeclaration\\ClassUseNameService');
     $this->sut = new InterfaceStatementService($this->classUseNameService);
     Phake::when($this->mockClassReflection)->getNamespaceName()->thenReturn('Zend');
 }
 public function setUp()
 {
     parent::setUp();
     $this->classTypeService = Phake::mock('EdpSuperluminal\\ClassDeclaration\\ClassTypeService');
     $this->extendsStatementService = Phake::mock('EdpSuperluminal\\ClassDeclaration\\ExtendsStatementService');
     $this->interfaceStatementService = Phake::mock('EdpSuperluminal\\ClassDeclaration\\InterfaceStatementService');
     $this->sut = new ClassDeclarationService($this->classTypeService, $this->extendsStatementService, $this->interfaceStatementService);
 }
 public function testFactory()
 {
     parent::setUp();
     $factory = new CacheBuilderFactory();
     $cacheCodeGenerator = Phake::mock('EdpSuperluminal\\CacheCodeGenerator');
     Phake::when($this->serviceLocator)->get('EdpSuperluminal\\CacheCodeGenerator')->thenReturn($cacheCodeGenerator);
     $shouldCacheClass = Phake::mock('EdpSuperluminal\\ShouldCacheClass\\ShouldCacheClassSpecification');
     Phake::when($this->serviceLocator)->get('EdpSuperluminal\\ShouldCacheClass')->thenReturn($shouldCacheClass);
     $this->assertTrue($factory->createService($this->serviceLocator) instanceof CacheBuilder);
 }
 public function setUp()
 {
     parent::setUp();
     $this->sut = new FileReflectionUseStatementService();
 }
 public function setUp()
 {
     parent::setUp();
     $factory = new ClassUseNameServiceFactory();
     $this->sut = $factory->createService($this->serviceLocator);
 }
 public function setUp()
 {
     parent::setUp();
     $this->sut = new ClassTypeService();
 }
 public function setUp()
 {
     parent::setUp();
     $this->sut = new CacheCodeGenerator($this->fileReflectionService, $this->classDeclarationService);
 }
 public function setUp()
 {
     parent::setUp();
     $shouldCacheClassFactory = new ShouldCacheClassSpecificationFactory();
     $this->sut = $shouldCacheClassFactory->createService($this->serviceLocator);
 }