/** * @covers Alchemy\Phrasea\Authentication\ProvidersCollection::has */ public function testHas() { $provider = $this->getProviderMock('neutron-provider'); $providers = new ProvidersCollection(); $this->assertFalse($providers->has('neutron-provider')); $providers->register($provider); $this->assertTrue($providers->has('neutron-provider')); }