public function testValidatingRequestWithScopesSeparatedByComma()
 {
     $validator = new ScopeValidator(Request::create('test', 'POST', ['scope' => 'foo,bar']), $storage = $this->getStorageMock());
     $validator->setScopeDelimiter(',');
     $storage->shouldReceive('get')->once()->with('foo')->andReturn(new ScopeEntity('foo', 'foo', 'foo'));
     $storage->shouldReceive('get')->once()->with('bar')->andReturn(new ScopeEntity('bar', 'bar', 'bar'));
     $scopes = $validator->validate();
     $this->assertArrayHasKey('foo', $scopes);
     $this->assertArrayHasKey('bar', $scopes);
 }