public function testNoAnnotations() { $serviceResolver = new ServiceResolver(); $services = $serviceResolver->findServices(TEST_DIR . '/ServiceResolver/NoAnnotations'); $this->assertEquals([], $services); }
/** * 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(); }