/**
  * Initialize the startup factory to run this tests with the integrated finder (use the integrated proxy).
  */
 public function testBuildProxyDefault()
 {
     $this->initializeFinder('Class2', $this->statedClass2Path);
     Factory\StandardStartupFactory::registerFactory('Teknoo\\States\\Proxy\\Integrated', new Support\MockFactory('my\\Stated\\Class', $this->finder, new \ArrayObject([])));
     $proxy = $this->finder->buildProxy();
     $this->assertInstanceOf('\\Teknoo\\States\\Proxy\\ProxyInterface', $proxy);
     $this->assertInstanceOf('\\Teknoo\\States\\Proxy\\Standard', $proxy);
     $this->assertInstanceOf('Class2\\Class2', $proxy);
 }
 /**
  * Test Factory\StandardStartupFactory::listRegisteredFactory if its return all initialized factory.
  */
 public function testListRegisteredFactory()
 {
     $factory = new Support\MockFactory('My\\Stated\\Class', new Support\MockFinder('My\\Stated\\Class', 'path/to/class'), new \ArrayObject());
     Factory\StandardStartupFactory::registerFactory('Teknoo\\Tests\\Support\\MockProxy1', $factory);
     Factory\StandardStartupFactory::reset();
     Factory\StandardStartupFactory::registerFactory('Teknoo\\Tests\\Support\\MockProxy2', $factory);
     Factory\StandardStartupFactory::registerFactory('Teknoo\\Tests\\Support\\MockProxy3', $factory);
     $this->assertEquals(array('Teknoo\\Tests\\Support\\MockProxy2', 'Teknoo\\Tests\\Support\\MockProxy3'), Factory\StandardStartupFactory::listRegisteredFactory());
 }