forked from gabrielrcouto/php-gui
-
Notifications
You must be signed in to change notification settings - Fork 0
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
15 changed files
with
137 additions
and
19 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,7 @@ | ||
vendor/ | ||
composer.lock | ||
vendor/ | ||
material/ | ||
lazarus/backup/ | ||
lazarus/backup/ | ||
bin/* | ||
!bin/.gitkeep | ||
phpunit.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,20 @@ | ||
language: php | ||
|
||
php: | ||
- 5.6 | ||
- 7.0 | ||
- hhvm | ||
|
||
before_install: | ||
- travis_retry composer self-update | ||
|
||
install: | ||
- travis_retry composer install --no-interaction --prefer-source --dev | ||
|
||
script: | ||
- bin/phing | ||
|
||
matrix: | ||
allow_failures: | ||
- php: hhvm | ||
fast_finish: true |
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
Empty file.
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,28 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<project name="php-gui" basedir="." default="main"> | ||
<property name="examples" value="examples" /> | ||
<property name="source" value="src" /> | ||
<property name="bindir" value="bin" /> | ||
|
||
<fileset id="php-files" dir="${project.basedir}"> | ||
<include name="${project.source}/**/*.php"/> | ||
</fileset> | ||
|
||
<target name="main" description="Start analyzing our application"> | ||
<echo msg="Start Build" /> | ||
|
||
<phingCall target="phpunit" /> | ||
<phingCall target="phpcs" /> | ||
|
||
<echo msg="Finished Build" /> | ||
</target> | ||
|
||
<target name="phpunit" description="Run unit tests using PHPUnit and generates junit.xml and clover.xml"> | ||
<exec passthru="true" command="${bindir}/phpunit" checkreturn="true"/> | ||
</target> | ||
|
||
<target name="phpcs" description="Coding Standards Analysis"> | ||
<exec passthru="true" command="${bindir}/phpcs --standard=PSR2 ${source}" checkreturn="true" /> | ||
<exec passthru="true" command="${bindir}/phpcs --standard=PSR2 ${examples}" checkreturn="true" /> | ||
</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
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,31 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd" | ||
backupGlobals="false" | ||
colors="true" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
syntaxCheck="true" | ||
stopOnFailure="false" | ||
bootstrap="vendor/autoload.php"> | ||
<testsuites> | ||
<testsuite name="Test Suite"> | ||
<directory>test/</directory> | ||
</testsuite> | ||
</testsuites> | ||
<filter> | ||
<whitelist addUncoveredFilesFromWhitelist="true"> | ||
<directory suffix=".php">src</directory> | ||
<exclude> | ||
<directory suffix="Interface.php">src</directory> | ||
<directory suffix="Aware.php">src</directory> | ||
<directory suffix="Trait.php">src</directory> | ||
</exclude> | ||
</whitelist> | ||
<blacklist> | ||
<directory>vendor</directory> | ||
</blacklist> | ||
</filter> | ||
</phpunit> |
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
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 |
---|---|---|
|
@@ -4,4 +4,4 @@ | |
|
||
interface MessageInterface | ||
{ | ||
} | ||
} |
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 |
---|---|---|
|
@@ -84,4 +84,4 @@ public function onData($data) | |
} | ||
} | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -102,4 +102,4 @@ private function output($json) | |
{ | ||
echo 'Sent: ' . $json . PHP_EOL; | ||
} | ||
} | ||
} |
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,17 @@ | ||
<?php | ||
|
||
namespace Test; | ||
|
||
use Gui\Application; | ||
|
||
class ApplicationTest extends \PHPUnit_Framework_TestCase | ||
{ | ||
public function testGetNextObjectId() | ||
{ | ||
$application = new Application(); | ||
|
||
$this->assertEquals(0, $application->getNextObjectId()); | ||
$this->assertEquals(1, $application->getNextObjectId()); | ||
$this->assertEquals(2, $application->getNextObjectId()); | ||
} | ||
} |