forked from sarnowski/maven-php-plugin
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
146 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
67 changes: 67 additions & 0 deletions
67
...est/src/test/resources/org/phpmaven/test/projects/mojos-sites/site-phpdoc2-alpha2/pom.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>org.phpmaven.test</groupId> | ||
<artifactId>site-all</artifactId> | ||
<packaging>php</packaging> | ||
<name>Sample PHP 5 library project</name> | ||
<version>0.0.1</version> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.phpmaven</groupId> | ||
<artifactId>maven-php-plugin</artifactId> | ||
<version>2.0-SNAPSHOT</version> | ||
<extensions>true</extensions> | ||
</plugin> | ||
|
||
<plugin> | ||
<groupId>org.phpmaven</groupId> | ||
<artifactId>maven-php-phpdoc</artifactId> | ||
<version>2.0-SNAPSHOT</version> | ||
<configuration> | ||
<phpdocService>PEAR</phpdocService> | ||
<phpdocVersion>2.0.0-alpha-2</phpdocVersion> | ||
</configuration> | ||
</plugin> | ||
|
||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-site-plugin</artifactId> | ||
<version>3.0</version> | ||
<inherited>true</inherited> | ||
<configuration> | ||
<reportPlugins> | ||
<plugin> | ||
<groupId>org.phpmaven</groupId> | ||
<artifactId>maven-php-plugin</artifactId> | ||
<version>2.0-SNAPSHOT</version> | ||
<reportSets> | ||
<reportSet> | ||
<reports> | ||
<report>phpdocumentor</report> | ||
</reports> | ||
</reportSet> | ||
</reportSets> | ||
</plugin> | ||
</reportPlugins> | ||
</configuration> | ||
</plugin> | ||
|
||
</plugins> | ||
</build> | ||
<dependencies> | ||
<dependency> | ||
<groupId>de.phpunit</groupId> | ||
<artifactId>PHPUnit</artifactId> | ||
<version>3.6.10</version> | ||
<scope>test</scope> | ||
<type>phar</type> | ||
</dependency> | ||
</dependencies> | ||
|
||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
</properties> | ||
</project> |
21 changes: 21 additions & 0 deletions
21
...urces/org/phpmaven/test/projects/mojos-sites/site-phpdoc2-alpha2/src/main/php/MyClass.php
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
/** | ||
* A simple test class. | ||
* | ||
* @author Martin Eisengardt | ||
*/ | ||
class MyMavenTestClass | ||
{ | ||
|
||
/** | ||
* Get the string "foo". | ||
* | ||
* @return string A string "foo" | ||
*/ | ||
public static function getFoo() | ||
{ | ||
return "foo"; | ||
} | ||
|
||
} |
20 changes: 20 additions & 0 deletions
20
...urces/org/phpmaven/test/projects/mojos-sites/site-phpdoc2-alpha2/src/test/php/FooTest.php
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
/** | ||
* The foo test class | ||
* | ||
* @author mepeisen | ||
*/ | ||
class FooTest extends PHPUnit_Framework_TestCase | ||
{ | ||
|
||
/** | ||
* tests the bar function | ||
*/ | ||
public function testFoo() | ||
{ | ||
include "MyClass.php"; | ||
$this->assertEquals("foo", MyMavenTestClass::getFoo()); | ||
} | ||
|
||
} |