Exemplo n.º 1
0
 /**
  * @return string[][]
  */
 protected function staticCallDataProvider()
 {
     return array(array(Selectors::key('foo'), Key::class), array(Selectors::property('foo'), Property::class), array(Selectors::method('foo'), Method::class), array(Selectors::callback(function () {
     }), Callback::class), array(Selectors::count(), Count::class), array(Selectors::value('foo'), Value::class), array(Selectors::composite(Selectors::value(array()), Selectors::count()), Composite::class));
 }
Exemplo n.º 2
0
 /**
  * @param string $name
  *
  * @return \Cubiche\Core\Predicate\SelectorPredicate
  */
 public function method($name)
 {
     return $this->select(Selectors::method($name)->selector());
 }