public function testDeterminesIfItCanCreateAnEventManagerByName() { $services = new ServiceManager(); $this->assertTrue($this->target->canCreateServiceWithName($services, 'irrelevant', 'Any.string/Value/Events'), 'Checking correct name failed.'); $this->assertFalse($this->target->canCreateServiceWithName($services, 'irrelevant', 'Any.string.not.ending/in/Events.but has it in the middle!'), 'Checking invalid name failed.'); }