コード例 #1
0
 /**
  * @return string
  */
 protected function getRootNamespace()
 {
     $rootClassReflection = new \ReflectionClass(FloatObject::getClass());
     return $rootClassReflection->getNamespaceName();
 }
コード例 #2
0
 /**
  * @test
  */
 public function I_can_create_it_same_way_as_using_to_float_tool()
 {
     $this->I_can_use_it_same_way_as_using('toFloat', FloatObject::getClass());
 }
コード例 #3
0
 /**
  * @test
  */
 public function I_can_use_it_same_way_as_using_number_object()
 {
     $this->I_can_use_it_same_way_as_using('toFloat', FloatObject::getClass());
     $this->I_can_use_it_same_way_as_using('toPositiveFloat', PositiveFloatObject::getClass());
     $this->I_can_use_it_same_way_as_using('toNegativeFloat', NegativeFloatObject::getClass());
 }