public function testGenerateId() { $app = $this->getApp(); $fooFighters = new RandomGenerator($app['randomgenerator'], 42); $daveGrohl = $fooFighters->generateId(); $this->assertNotSame('Nirvana', $daveGrohl); $this->assertSame(42, strlen($daveGrohl)); }