Skip to content
Snippets Groups Projects
Commit 619d4aca authored by xamgore's avatar xamgore
Browse files

PHPUnit environment

parent f742b6be
Branches
Tags
No related merge requests found
<?php
class Model_Discipline_Test extends PHPUnit_Framework_TestCase {
/** @test */
function idField() {
$d = Model_Discipline::load(1);
$this->assertEquals($d->id, 1);
}
class Model_Discipline_Test extends PHPUnit_Framework_TestCase
{
}
......@@ -18,7 +18,7 @@ class Kohana_Twig extends View {
*/
protected static function _init_cache($path)
{
if (mkdir($path, 0755, TRUE) AND chmod($path, 0755))
if (mkdir($path, 0777, TRUE) AND chmod($path, 0777))
return TRUE;
return FALSE;
......
......@@ -252,10 +252,10 @@ class Kohana_Core {
try
{
// Create the cache directory
mkdir($settings['cache_dir'], 0755, TRUE);
mkdir($settings['cache_dir'], 0777, TRUE);
// Set permissions (must be manually set to fix umask issues)
chmod($settings['cache_dir'], 0755);
chmod($settings['cache_dir'], 0777);
}
catch (Exception $e)
{
......
......@@ -54,10 +54,10 @@ class Kohana_Log_File extends Log_Writer {
if ( ! is_dir($directory))
{
// Create the yearly directory
mkdir($directory, 02777);
mkdir($directory, 0777);
// Set permissions (must be manually set to fix umask issues)
chmod($directory, 02777);
chmod($directory, 0777);
}
// Add the month to the directory
......@@ -66,10 +66,10 @@ class Kohana_Log_File extends Log_Writer {
if ( ! is_dir($directory))
{
// Create the monthly directory
mkdir($directory, 02777);
mkdir($directory, 0777);
// Set permissions (must be manually set to fix umask issues)
chmod($directory, 02777);
chmod($directory, 0777);
}
// Set the name of the log file
......
......@@ -19,7 +19,9 @@
"source": "http://github.com/kohana/core"
},
"require": {
"php": ">=5.3.3"
"php": ">=5.3.3",
"phpunit/phpunit": "4.7.5",
"phpunit/dbunit": "1.4.0"
},
"suggest": {
"ext-http": "*",
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment