/** * @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)); }
/** * @param Endpoint $other * @return bool */ public function equals(Endpoint $other) { return $this->binding->equals($other->binding) && $this->location === $other->location && $this->responseLocation === $other->responseLocation; }