Author: Nate Brunette (n@tebru.net)
Ejemplo n.º 1
0
 public function testNoAnnotations()
 {
     $serviceResolver = new ServiceResolver();
     $services = $serviceResolver->findServices(TEST_DIR . '/ServiceResolver/NoAnnotations');
     $this->assertEquals([], $services);
 }
Ejemplo n.º 2
0
 /**
  * Use the service resolver to find all the services dynamically
  *
  * @param string $srcDir
  * @return int Number of services cached
  */
 public function cacheAll($srcDir)
 {
     $this->services = $this->serviceResolver->findServices($srcDir);
     return $this->createCache();
 }