public function test_search() { $class_names = $this->speaker_seeker->search_classes(); $this->assertTrue(is_array($class_names)); $this->assertNotEmpty($class_names); foreach ($class_names as $class_name) { $this->assertTrue(class_exists($class_name, true)); } }
public function test_search() { $seeker = new Hello_Kushimoto_Speaker_Seeker(); $class_names = $seeker->search_classes(); $this->assertTrue(is_array($class_names)); $this->assertNotEmpty($class_names); foreach ($class_names as $class_name) { $this->assertTrue(class_exists($class_name, true)); } }
/** * @return Hello_Kushimoto_Speaker[] */ public function get_speakers() { $classes = $this->speaker_seeker->search_classes(); $speakers = array_map(array($this, 'create_speaker'), $classes); return array_filter($speakers); }