コード例 #1
0
 /**
  * @test
  * @group metadata
  * @group common
  *
  * @dataProvider bindingAndFactoryMethodProvider
  *
  * @param string $binding
  * @param string $factoryMethod
  */
 public function bindings_created_through_constructor_are_equal_to_their_factory_method_counterparts($binding, $factoryMethod)
 {
     $byConstructor = new Binding($binding);
     $byFactoryMethod = Binding::$factoryMethod();
     $this->assertTrue($byConstructor->equals($byFactoryMethod));
 }
コード例 #2
0
 /**
  * @param Endpoint $other
  * @return bool
  */
 public function equals(Endpoint $other)
 {
     return $this->binding->equals($other->binding) && $this->location === $other->location && $this->responseLocation === $other->responseLocation;
 }