/** * @expectedException \InvalidArgumentException * @expectedExceptionMessage The subsystem 'does_not_exist' is not supported. */ public function testCreateInvalidSubsystem() { $session = new Session($this->configuration); $session->getSubsystem('does_not_exist'); }