/**
  * @inheritDoc
  */
 public static function build(array $params) : Ghost
 {
     $ghost = parent::build($params);
     /** @var MethodTestGhost $ghost */
     $ghost->addProperty('testedMethod', $params['testedMethod']);
     $ghost->addProperty('sample', DefaultGraphedGhost::build($params['sample']));
     return $ghost;
 }
Exemple #2
0
 /**
  * @param array $config
  * @return Application
  */
 public function setUpTest(array $config) : Application
 {
     $testGhost = TestGhost::build($config);
     $this->container->addItem($testGhost, 'test');
     return $this;
 }