providerManager = new WorldProviderManager(); } public function testAddNonClassProvider() : void{ $this->expectException(\InvalidArgumentException::class); $this->providerManager->addProvider("lol", "nope"); } public function testAddAbstractClassProvider() : void{ $this->expectException(\InvalidArgumentException::class); $this->providerManager->addProvider(AbstractWorldProvider::class, "abstract"); } public function testAddInterfaceProvider() : void{ $this->expectException(\InvalidArgumentException::class); $this->providerManager->addProvider(InterfaceWorldProvider::class, "interface"); } public function testAddWrongClassProvider() : void{ $this->expectException(\InvalidArgumentException::class); $this->providerManager->addProvider(LevelProviderManagerTest::class, "bad_class"); } }