コード例 #1
0
ファイル: DispatcherStore.php プロジェクト: wizbii/pipeline
 /**
  * @param mixed $acceptedValues
  * @return $this
  */
 public function containsKeys($acceptedValues)
 {
     return $this->addMatcher(ContainsKeys::build($acceptedValues));
 }
コード例 #2
0
ファイル: ContainsKeysTest.php プロジェクト: wizbii/pipeline
 /**
  * @test
  */
 public function doesNotMatch()
 {
     $matcher = new ContainsKeys(["foo", "bar"]);
     $this->assertThat($matcher->matches(["foo" => "hello"]), $this->isFalse());
 }