public function testGetByType() { $scope = new Scope(); $scope->set('testA', new \Exception()); $this->assertNotNull($scope->getByType('\\Exception')); }