示例#1
0
 /**
  * @test
  */
 public function belongsToReferenceWordsDashedToDots()
 {
     $section = new Section('Styleguide Forms - Buttons - Special Actions -');
     $this->assertTrue($section->belongsToReference('Forms'));
     $this->assertTrue($section->belongsToReference('Forms.Buttons'));
     $this->assertTrue($section->belongsToReference('Forms.Buttons'));
     $this->assertTrue($section->belongsToReference('Forms.Buttons.Special Actions'));
     $this->assertTrue($section->belongsToReference('Forms.Buttons.Special Actions.'));
     $this->assertTrue($section->belongsToReference('Forms.Buttons.Special Actions'));
     $this->assertTrue($section->belongsToReference('Forms.Buttons.Special Actions.'));
     $this->assertFalse($section->belongsToReference('Tables'));
     $this->assertFalse($section->belongsToReference('Forms.Checkboxes'));
     $this->assertFalse($section->belongsToReference('Forms.Buttons.Links'));
     $this->assertFalse($section->belongsToReference('Forms.Buttons.Special Actions.Super Special'));
 }