function it_should_be_unique(){
        $ids = [];
        $iterations = 100;

        for($i=0; $i < $iterations; $i++){
            $ids[] = $this->getWrappedObject()->generate();
        }

        return (count(array_values($ids)) === $iterations);
    }
function it_should_be_unique(){
        $ids = [];
        $iterations = 100;

        for($i=0; $i < $iterations; $i++){
            $ids[] = $this->getWrappedObject()->generate();
        }

        return (count(array_values($ids)) === $iterations);
    }
function it_should_be_unique ( ) { $ ids = [ ] ; $ iterations = 100 ; for ( $ i = 0 ; $ i < $ iterations ; $ i ++ ) { $ ids [ ] = $ this -> getWrappedObject ( ) -> generate ( ) ; } return ( count ( array_values ( $ ids ) ) === $ iterations ) ; }
Naive way of testing uniqueness, I know
Naive way of testing uniqueness I know