Skip to content

Commit

Permalink
Add test groups for easier test breakdown.
Browse files Browse the repository at this point in the history
  • Loading branch information
bobthecow committed Nov 24, 2010
1 parent 963faf5 commit f143f17
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/MustacheSpecTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

/**
* A PHPUnit test case wrapping the Mustache Spec
*
* @group mustache-spec
*/
class MustacheSpecTest extends PHPUnit_Framework_TestCase {

Expand All @@ -20,6 +22,7 @@ public function testSpecInitialized() {
}

/**
* @group comments
* @dataProvider loadCommentSpec
*/
public function testCommentSpec($template, $data, $partials, $expected, $desc) {
Expand All @@ -28,6 +31,7 @@ public function testCommentSpec($template, $data, $partials, $expected, $desc) {
}

/**
* @group delimiters
* @dataProvider loadDelimitersSpec
*/
public function testDelimitersSpec($template, $data, $partials, $expected, $desc) {
Expand All @@ -36,6 +40,7 @@ public function testDelimitersSpec($template, $data, $partials, $expected, $desc
}

/**
* @group interpolation
* @dataProvider loadInterpolationSpec
*/
public function testInterpolationSpec($template, $data, $partials, $expected, $desc) {
Expand All @@ -44,6 +49,7 @@ public function testInterpolationSpec($template, $data, $partials, $expected, $d
}

/**
* @group inverted-sections
* @dataProvider loadInvertedSpec
*/
public function testInvertedSpec($template, $data, $partials, $expected, $desc) {
Expand All @@ -52,6 +58,7 @@ public function testInvertedSpec($template, $data, $partials, $expected, $desc)
}

/**
* @group lambdas
* @dataProvider loadLambdasSpec
*/
public function testLambdasSpec($template, $data, $partials, $expected, $desc) {
Expand All @@ -66,6 +73,7 @@ public function testLambdasSpec($template, $data, $partials, $expected, $desc) {
}

/**
* @group partials
* @dataProvider loadPartialsSpec
*/
public function testPartialsSpec($template, $data, $partials, $expected, $desc) {
Expand All @@ -78,6 +86,7 @@ public function testPartialsSpec($template, $data, $partials, $expected, $desc)
}

/**
* @group sections
* @dataProvider loadSectionsSpec
*/
public function testSectionsSpec($template, $data, $partials, $expected, $desc) {
Expand Down

0 comments on commit f143f17

Please sign in to comment.