Kaynağa Gözat

Changed project name to BasicWeb.

Taddeus Kroes 13 yıl önce
ebeveyn
işleme
caa0fc0dc0
7 değiştirilmiş dosya ile 21 ekleme ve 22 silme
  1. 5 4
      README.txt
  2. 2 2
      autoloader.php
  3. 5 6
      base.php
  4. 2 2
      logger.php
  5. 2 2
      tests/test_autoloader.php
  6. 4 5
      tests/test_base.php
  7. 1 1
      tests/test_logger.php

+ 5 - 4
README.txt

@@ -1,10 +1,11 @@
 -------
 Summary
 -------
-Minimalistic is a set of classes to create websites with. The core exists of
-a class autoloader, a template parser, a logger and some array manipulation
-functions. No MVC 'model' implementation is included, there are already many
-of these out there (PHPActiveRecord is recommended).
+BasicWeb is a set of classes that provides the minimal functionalities of a
+website. The core exists of a class autoloader, a template parser, a logger
+and some array manipulation functions. No MVC 'model' implementation is
+included, there are already many of these out there (PHPActiveRecord is
+recommended).
 
 ----------
 Unit tests

+ 2 - 2
autoloader.php

@@ -7,7 +7,7 @@
  * @date 13-07-2012
  */
 
-namespace Minimalistic;
+namespace BasicWeb;
 
 require_once 'base.php';
 
@@ -52,7 +52,7 @@ require_once 'base.php';
  * $baz = new Baz();  // Throws an exception, since 'other_classes/baz.php' does not exist
  * </code>
  * 
- * @package Minimalistic
+ * @package BasicWeb
  */
 class Autoloader extends Base {
 	/**

+ 5 - 6
base.php

@@ -1,24 +1,23 @@
 <?php
 /**
- * Commonly used classes used in the Minimalistic package.
+ * Commonly used classes used in the BasicWeb package.
  * 
  * @author Taddeus Kroes
  * @version 1.0
  * @date 13-07-2012
- * @package Minimalistic
  */
 
-namespace Minimalistic;
+namespace BasicWeb;
 
 require_once 'logger.php';
 
 /**
- * Base class for instantiable classes in the Minimalistic package.
+ * Base class for instantiable classes in the BasicWeb package.
  * 
  * The base class defines a static 'create' method that acts as a chainable
  * shortcut for the class constructor.
  * 
- * @package Minimalistic
+ * @package BasicWeb
  */
 abstract class Base {
 	/**
@@ -41,7 +40,7 @@ abstract class Base {
 /**
  * Exception, thrown when a required file does not exist.
  * 
- * @package Minimalistic
+ * @package BasicWeb
  */
 class FileNotFoundError extends \RuntimeException {
 	/**

+ 2 - 2
logger.php

@@ -7,14 +7,14 @@
  * @date 13-07-2012
  */
 
-namespace Minimalistic;
+namespace BasicWeb;
 
 /**
  * Logger class. 
  * 
  * A Logger object provides five functions to process log messages.
  * 
- * @package Minimalistic
+ * @package BasicWeb
  */
 class Logger {
 	const CRITICAL = 0;

+ 2 - 2
tests/test_autoloader.php

@@ -1,7 +1,7 @@
 <?php
 
 require_once 'autoloader.php';
-use Minimalistic\Autoloader;
+use BasicWeb\Autoloader;
 
 define('PATH', 'tests/_files/');
 
@@ -49,7 +49,7 @@ class AutoloaderTest extends PHPUnit_Framework_TestCase {
 	
 	/**
 	 * @depends test_create_path
-	 * @expectedException Minimalistic\FileNotFoundError
+	 * @expectedException BasicWeb\FileNotFoundError
 	 * @expectedExceptionMessage File "tests/_files/foobar.php" does not exist.
 	 */
 	function test_load_class_not_found() {

+ 4 - 5
tests/test_base.php

@@ -1,9 +1,8 @@
 <?php
 
 require_once 'base.php';
-use Minimalistic\asprintf;
 
-class BaseExtension extends Minimalistic\Base {
+class BaseExtension extends BasicWeb\Base {
 	function __construct($foo, $bar) {
 		$this->foo = $foo;
 		$this->bar = $bar;
@@ -16,10 +15,10 @@ class BaseTest extends PHPUnit_Framework_TestCase {
 	}
 	
 	function test_asprintf() {
-		$this->assertEquals(Minimalistic\asprintf('%(foo) baz', array('foo' => 'bar')), 'bar baz');
-		$this->assertEquals(Minimalistic\asprintf('%(foo) baz %(foo)',
+		$this->assertEquals(BasicWeb\asprintf('%(foo) baz', array('foo' => 'bar')), 'bar baz');
+		$this->assertEquals(BasicWeb\asprintf('%(foo) baz %(foo)',
 			array('foo' => 'bar')), 'bar baz bar');
-		$this->assertEquals(Minimalistic\asprintf('%(bar) baz %(foo)',
+		$this->assertEquals(BasicWeb\asprintf('%(bar) baz %(foo)',
 			array('foo' => 'bar', 'bar' => 'foobar')), 'foobar baz bar');
 	}
 }

+ 1 - 1
tests/test_logger.php

@@ -1,7 +1,7 @@
 <?php
 
 require_once 'logger.php';
-use Minimalistic\Logger;
+use BasicWeb\Logger;
 
 define('NAME', 'Testlogger');
 define('FORMAT', '%(level): %(message)');