Created
July 9, 2012 12:57
-
-
Save marcinrogacki/3076391 to your computer and use it in GitHub Desktop.
EcomDev_PHPUnit model - custom group annotation issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<config> | |
<modules> | |
<Mymodule_Annotation> | |
<version>0.1.0</version> | |
</Mymodule_Annotation> | |
</modules> | |
<phpunit> | |
<suite> | |
<modules> | |
<Mymodule_Annotation /> | |
</modules> | |
</suite> | |
</phpunit> | |
</config> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Mymodule_Annotation_Test_Model_Group extends EcomDev_PHPUnit_Test_Case | |
{ | |
/** | |
* @test | |
* @group mygroup | |
*/ | |
public function first() | |
{ | |
$this->assertTrue(true); | |
} | |
/** | |
* @test | |
* @dataProvider provider | |
* @group mygroup | |
*/ | |
public function second() | |
{ | |
$this->assertTrue(true); | |
} | |
/** | |
* @test | |
* @dataProvider dataProvider | |
* @group mygroup | |
*/ | |
public function third() | |
{ | |
$this->assertTrue(true); | |
} | |
public function provider() | |
{ | |
return array(array(1)); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<config> | |
<modules> | |
<Mymodule_Annotation> | |
<version>0.1.0</version> | |
</Mymodule_Annotation> | |
</modules> | |
<phpunit> | |
<suite> | |
<modules> | |
<Mymodule_Annotation /> | |
</modules> | |
</suite> | |
</phpunit> | |
</config> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment