Add extcmd.c compilation to test/php/runtests.sh
Add binary to .gitignore and fix test path generation of cache dir. refs #4258
This commit is contained in:
parent
a6100acaa8
commit
521baeba5e
|
@ -9,3 +9,6 @@ test/js/npm-debug.log
|
|||
|
||||
# ./configure output
|
||||
config.log
|
||||
|
||||
# cmd tester
|
||||
test/php/bin/extcmd_test
|
||||
|
|
|
@ -45,10 +45,18 @@ class ParserMock {
|
|||
require("Zend/Cache.php");
|
||||
class ReaderTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
protected function tearDown()
|
||||
{
|
||||
if (file_exists('./tmp')) {
|
||||
@system("rm -rf ./tmp");
|
||||
}
|
||||
}
|
||||
|
||||
public function testFileCaching() {
|
||||
if (!file_exists('./tmp')) {
|
||||
mkdir('./tmp');
|
||||
}
|
||||
$parser = new ParserMock();
|
||||
@system("rm /tmp/zend_cache*");
|
||||
$parser->runtime = array("host"=>array(
|
||||
"test" => (object) array(
|
||||
"host_name" => "test"
|
||||
|
@ -68,6 +76,7 @@ class ReaderTest extends \PHPUnit_Framework_TestCase
|
|||
system("rm /tmp/zend_cache*");
|
||||
}
|
||||
public function testEmptyFileException() {
|
||||
|
||||
$this->setExpectedException("Icinga\Exception\ConfigurationError");
|
||||
$parser = new ParserMock();
|
||||
$reader = new Reader(new ConfigMock(array(
|
||||
|
|
Loading…
Reference in New Issue