enableLibraryHooks() public method

Enables specified LibraryHook(s) by its name.
public enableLibraryHooks ( string | string[] $hooks ) : Configuration
$hooks string | string[] Name of the LibraryHook(s) to enable.
return Configuration
 public function testHandleRequestRecordsRequest()
 {
     $request = new Request('GET', 'http://example.com', array('User-Agent' => 'Unit-Test'));
     $response = new Response(200, array(), 'example response');
     $client = $this->getClientMock($request, $response);
     $configuration = new Configuration();
     $configuration->enableLibraryHooks(array());
     $proxy = new ProxyBuilder('\\VCR\\Videorecorder');
     $videorecorder = $proxy->setConstructorArgs(array($configuration, $client, VCRFactory::getInstance()))->setProperties(array('cassette', 'client'))->getProxy();
     $videorecorder->client = $client;
     $videorecorder->cassette = $this->getCassetteMock($request, $response);
     $this->assertEquals($response, $videorecorder->handleRequest($request));
 }