コード例 #1
0
ファイル: ServiceConfigTest.php プロジェクト: dszczer/Minion
 /**
  * Test service config parser - should not throw any errors.
  *
  * @return void
  */
 public function testParser()
 {
     $config = new ServiceConfig($this->id, $this->data);
     $tags = $config->getTags();
     $this->assertEquals($this->id, $config->getId());
     $this->assertEquals('Minion\\Tests\\Service\\ServiceProvider', $config->getProviderClass());
     $this->assertEquals('hello world', $config->getOption('test_service.option'));
     $this->assertArrayHasKey(0, $tags);
     $this->assertEquals('test.tag', $tags[0]);
 }