getMock('Ramsey\Uuid\Provider\TimeProviderInterface'); $nodeProvider = $this->getMock('Ramsey\Uuid\Provider\NodeProviderInterface'); $timeConverter = $this->getMock('Ramsey\Uuid\Converter\TimeConverterInterface'); $factory = new TimeGeneratorFactory($nodeProvider, $timeConverter, $timeProvider); $generator = $factory->getGenerator(); $this->assertInstanceOf('Ramsey\Uuid\Generator\TimeGeneratorInterface', $generator); } }