Permalink
Browse files

Minor changes in comments.

  • Loading branch information...
1 parent dc9bd4e commit 8984af120160b27ea69ee8a919a67613ab6dba2a @nrk committed Dec 11, 2011
Showing with 24 additions and 6 deletions.
  1. +1 −0 autoload.php
  2. +0 −3 bin/create-phar.php
  3. +0 −3 bin/create-single-file.php
  4. +23 −0 bin/generate-command-test.php
View
@@ -1,4 +1,5 @@
<?php
+
/*
* This file is part of the Predis package.
*
View
@@ -11,13 +11,10 @@
*/
// -------------------------------------------------------------------------- //
-
// In order to be able to execute this script to create a Phar archive of Predis,
// the Phar module must be loaded and the "phar.readonly" directive php.ini must
// be set to "off". You can change the values in the $options array to customize
// the creation of the Phar archive to better suit your needs.
-
-
// -------------------------------------------------------------------------- //
$options = array(
@@ -11,7 +11,6 @@
*/
// -------------------------------------------------------------------------- //
-
// This script can be used to automatically glue all the .php files of Predis
// into a single monolithic script file that can be used without an autoloader,
// just like the other previous versions of the library.
@@ -21,8 +20,6 @@
// when dealing with subclassing and inheritance.
//
// The current implementation is pretty naïve, but it should do for now.
-//
-
// -------------------------------------------------------------------------- //
class CommandLine
@@ -10,6 +10,29 @@
* file that was distributed with this source code.
*/
+// -------------------------------------------------------------------------- //
+// This script can be used to automatically generate a file with the scheleton
+// of a test case to test a Redis command by specifying the name of the class
+// in the Predis\Commands namespace (only classes in this namespace are valid).
+// For example, to generate a test case for SET (which is represented by the
+// Predis\Commands\StringSet class):
+//
+// $ ./bin/generate-command-test.php --class=StringSet
+//
+// Here is a list of optional arguments:
+//
+// --realm: each command has its own realm (commands that operate on strings,
+// lists, sets and such) but while this realm is usually inferred from the name
+// of the specified class, sometimes it can be useful to override it with a
+// custom one.
+//
+// --output: write the generated test case to the specified path instead of
+// the default one.
+//
+// --overwrite: pre-existing test files are not overwritten unless this option
+// is explicitly specified.
+// -------------------------------------------------------------------------- //
+
use Predis\Commands\ICommand;
use Predis\Commands\IPrefixable;

0 comments on commit 8984af1

Please sign in to comment.