Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
language: php

php:
- 5.4
- 5.5
- 5.6

env:
global:
- PLUGIN_NAME=ConfigRead
- REQUIRE=""
- PHPCS_ARGS="-p --extensions=php --standard=vendor/loadsys/loadsys_codesniffer/Loadsys --ignore=vendor/ ."

matrix:
- DB=mysql CAKE_VERSION=2.5
- DB=mysql CAKE_VERSION=2.6

matrix:
fast_finish: true
include:
- php: 5.6
env:
- COVERALLS=1
- DB=mysql
- CAKE_VERSION=2.6
- php: 5.6
env:
- DB=mysql
- CAKE_VERSION=2.6
- PHPCS=1
allow_failures:

before_install:
- composer self-update

before_script:
- git clone -b master https://github.com/FriendsOfCake/travis.git --depth 1 ../travis
- ../travis/before_script.sh
- composer require --dev --no-interaction --prefer-source loadsys/loadsys_codesniffer=*

script:
- ../travis/script.sh

after_success:
- ../travis/after_success.sh

notifications:
email: false
23 changes: 23 additions & 0 deletions Test/Case/AllConfigReadCommandTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php
/**
* Custom test suite to execute all ConfigRead Plugin Command tests.
*
* @package ConfigRead.Test.Case
*/

/**
* AllConfigReadCommandTest
*/
class AllConfigReadCommandTest extends PHPUnit_Framework_TestSuite {

/**
* load the suites
*
* @return CakeTestSuite
*/
public static function suite() {
$suite = new CakeTestSuite('All ConfigRead Plugin Command Tests');
$suite->addTestDirectoryRecursive(dirname(__FILE__) . '/Console/Command/');
return $suite;
}
}
23 changes: 23 additions & 0 deletions Test/Case/AllConfigReadConsoleTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php
/**
* Custom test suite to execute all ConfigRead Plugin Console tests.
*
* @package ConfigRead.Test.Case
*/

/**
* AllConfigReadConsoleTest
*/
class AllConfigReadConsoleTest extends PHPUnit_Framework_TestSuite {

/**
* load the suites
*
* @return CakeTestSuite
*/
public static function suite() {
$suite = new CakeTestSuite('All ConfigRead Plugin Console Tests');
$suite->addTestDirectoryRecursive(dirname(__FILE__) . '/Console/');
return $suite;
}
}
41 changes: 41 additions & 0 deletions Test/Case/AllConfigReadTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php
/**
* Custom test suite to execute all ConfigRead Plugin tests.
*
* @package ConfigRead.Test.Case
*/

/**
* AllConfigReadTest
*/
class AllConfigReadTest extends PHPUnit_Framework_TestSuite {

/**
* the suites to load
*
* @var array
*/
public static $suites = array(
// Console Folder
'AllConfigReadConsoleTest.php',
'AllConfigReadCommandTest.php',
);

/**
* load the suites
*
* @return CakeTestSuite
*/
public static function suite() {
$path = dirname(__FILE__) . '/';
$suite = new CakeTestSuite('All Tests');

foreach (self::$suites as $file) {
if (is_readable($path . $file)) {
$suite->addTestFile($path . $file);
}
}
return $suite;
}

}
49 changes: 48 additions & 1 deletion Test/Case/Console/Command/ConfigReadShellTest.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,49 @@
<?php
//@TODO
/**
* Class to test the ConfigReadShell methods
*
* @package ConfigRead.Test.Case.Console.Command
*/
App::uses('ConfigReadShell', 'ConfigRead.Console/Command');

/**
* ConfigReadShellTest
*/
class ConfigReadShellTest extends CakeTestCase {

/**
* Fixtures
*
* @var array
*/
public $fixtures = array(
);

/**
* setUp method
*
* @return void
*/
public function setUp() {
parent::setUp();
}

/**
* tearDown method
*
* @return void
*/
public function tearDown() {
parent::tearDown();
}

/**
* mark tests as incomplete for the plugin
*
* @return void
*/
public function testsIncomplete() {
$this->markTestIncomplete("No tests implemented for ConfigReadShell.");
}

}