public function testLoad()
 {
     $data = array('rand' => rand());
     file_put_contents("{$this->dir}/test.php", '<?php return ' . var_export($data, true) . ';');
     $this->setPropertyValue($this->loader, 'collector', $this->collector);
     $this->assertSame($data, $this->loader->load('test.php'));
     $resources = $this->collector->getResources();
     $this->assertCount(1, $resources);
     $this->assertInstanceOf('Symfony\\Component\\Config\\Resource\\FileResource', $resources[0]);
 }
 /**
  * @depends testAddResource
  */
 public function testGetResources()
 {
     $this->collector->addResource($this->resource);
     $this->assertSame(array($this->resource), $this->collector->getResources());
 }