This repository has been archived by the owner on Feb 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
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
1 parent
4e5b1e6
commit b5d4261
Showing
9 changed files
with
68,308 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
service_name: travis-ci | ||
src_dir: module | ||
coverage_clover: build/logs/clover.xml | ||
json_path: build/logs/coveralls-upload.json |
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 |
---|---|---|
|
@@ -10,4 +10,3 @@ public/js/dependencies/ | |
public/css/.sass-cache/ | ||
/nbproject | ||
build/ | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project name="learnzf2" default="phpunit"> | ||
<target name="phpunit"> | ||
<parallel threadCount="2"> | ||
<echo message="Running tests" /> | ||
|
||
<exec executable="phpunit" failonerror="true"> | ||
<arg line="-c ${basedir}/module/Application/test/phpunit.xml" /> | ||
<arg line="--coverage-php build/coverage/coverage-application.cov" /> | ||
</exec> | ||
|
||
<exec executable="phpunit" failonerror="true"> | ||
<arg line="-c ${basedir}/module/LearnZF2FormUsage/test/phpunit.xml" /> | ||
<arg line="--coverage-php build/coverage/coverage-learnzf2formusage.cov" /> | ||
</exec> | ||
|
||
</parallel> | ||
</target> | ||
</project> |
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
27 changes: 27 additions & 0 deletions
27
module/LearnZF2FormUsage/test/LearnZF2FormUsageTest/Controller/IndexControllerTest.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,27 @@ | ||
<?php | ||
|
||
namespace LearnZF2FormUsageTest\Controller; | ||
|
||
use Zend\Test\PHPUnit\Controller\AbstractHttpControllerTestCase; | ||
|
||
class IndexControllerTest extends AbstractHttpControllerTestCase | ||
{ | ||
public function setUp() | ||
{ | ||
$this->setApplicationConfig( | ||
include dirname(dirname(dirname(dirname(dirname(__DIR__))))) . '/config/application.config.php' | ||
); | ||
parent::setUp(); | ||
} | ||
|
||
public function testIndexActionCanBeAccessed() | ||
{ | ||
$this->dispatch('/learn-zf2-form-usage'); | ||
$this->assertResponseStatusCode(200); | ||
|
||
$this->assertModuleName('LearnZF2FormUsage'); | ||
$this->assertControllerName('LearnZF2FormUsage\Controller\Form'); | ||
$this->assertControllerClass('FormController'); | ||
$this->assertMatchedRouteName('learn-zf2-form-usage'); | ||
} | ||
} |
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,5 @@ | ||
<phpunit bootstrap="Bootstrap.php" colors="true"> | ||
<testsuite name="LearnZF2FormUsage" > | ||
<directory>./LearnZF2FormUsageTest</directory> | ||
</testsuite> | ||
</phpunit> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.