Source

						public function testServiceLocateInstantiation() {
		$result = Libraries::instance('adapter.template.view', 'Simple');
		$this->assertTrue($result instanceof Simple);
		$this->expectException("Class `Foo` of type `adapter.template.view` not found.");
		$result = Libraries::instance('adapter.template.view', 'Foo');
	}