useStyle() public static méthode

public static useStyle ( string $use ) : void
$use string
Résultat void
 /**
  * @param string $use
  * @return $this
  */
 public function setUse($use)
 {
     IsValid::useStyle($use);
     $this->use = $use;
     return $this;
 }
 /**
  * @test
  */
 public function shouldThrowExceptionWhenUseIsInValid()
 {
     //when
     try {
         IsValid::useStyle('INVALID_USE');
         $this->assertFalse(true, 'Triggered when exception is not throw');
     } catch (InvalidArgumentException $e) {
         //then
         $this->assertEquals('Invalid use [INVALID_USE] available uses: [LITERAL, ENCODED]', $e->getMessage());
         $this->assertInstanceOf('\\InvalidArgumentException', $e);
     }
 }