Exemplo n.º 1
0
 /**
  * Method to test normalize().
  *
  * @return void
  *
  * @covers Windwalker\Language\Language::normalize
  */
 public function testNormalize()
 {
     $this->assertEquals('windwalker.is.good', $this->instance->normalize('Windwalker is good ~~~!!!'));
     $this->instance->setNormalizeHandler(function ($value) {
         return 'WINDWALKER-ROCKS';
     });
     $this->assertEquals('WINDWALKER-ROCKS', $this->instance->normalize('Windwalker is good ~~~!!!'));
 }