Permalink
Browse files

renamed lib to src and test to tests

Although not written in a standard anywhere (to my knowledge),
this seems to be the standard for PHP 5.3 libraries - I feel like
we should follow it

* https://github.com/kriswallsmith/assetic
* https://github.com/Seldaek/monolog
* https://github.com/schmittjoh/metadata
* https://github.com/KnpLabs/KnpMenu
  • Loading branch information...
1 parent f02a778 commit 2eb8507e3ada1d1983f6b5eb0cf388986c0a9c35 @kbond kbond committed Feb 19, 2012
Showing with 6 additions and 6 deletions.
  1. +4 −4 phpunit.xml.dist
  2. 0 {lib → src}/Stash/Autoloader.php
  3. 0 {lib → src}/Stash/Box.php
  4. 0 {lib → src}/Stash/Cache.php
  5. 0 {lib → src}/Stash/Error.php
  6. 0 {lib → src}/Stash/Handlers.php
  7. 0 {lib → src}/Stash/Handlers/Apc.php
  8. 0 {lib → src}/Stash/Handlers/Ephemeral.php
  9. 0 {lib → src}/Stash/Handlers/FileSystem.php
  10. 0 {lib → src}/Stash/Handlers/HandlerInterface.php
  11. 0 {lib → src}/Stash/Handlers/Memcached.php
  12. 0 {lib → src}/Stash/Handlers/MultiHandler.php
  13. 0 {lib → src}/Stash/Handlers/Sqlite.php
  14. 0 {lib → src}/Stash/Handlers/Xcache.php
  15. 0 {lib → src}/Stash/Manager.php
  16. 0 {lib → src}/Stash/Utilities.php
  17. 0 {lib → src}/Stash/Warning.php
  18. 0 {test → tests}/Stash/Test/AutoloaderTest.php
  19. 0 {test → tests}/Stash/Test/BoxTest.php
  20. 0 {test → tests}/Stash/Test/CacheExceptionTest.php
  21. 0 {test → tests}/Stash/Test/CacheMemOnlyTest.php
  22. 0 {test → tests}/Stash/Test/CacheTest.php
  23. 0 {test → tests}/Stash/Test/Handlers/AbstractHandlerTest.php
  24. 0 {test → tests}/Stash/Test/Handlers/ApcTest.php
  25. 0 {test → tests}/Stash/Test/Handlers/EphemeralTest.php
  26. 0 {test → tests}/Stash/Test/Handlers/ExceptionTest.php
  27. 0 {test → tests}/Stash/Test/Handlers/FileSystemTest.php
  28. 0 {test → tests}/Stash/Test/Handlers/MemcachedMemcacheTest.php
  29. 0 {test → tests}/Stash/Test/Handlers/MemcachedMemcachedTest.php
  30. 0 {test → tests}/Stash/Test/Handlers/MultiHandlerTest.php
  31. 0 {test → tests}/Stash/Test/Handlers/SqlitePdoSqlite2Test.php
  32. 0 {test → tests}/Stash/Test/Handlers/SqlitePdoSqlite3Test.php
  33. 0 {test → tests}/Stash/Test/Handlers/SqliteSqlite2Test.php
  34. 0 {test → tests}/Stash/Test/Handlers/XcacheTest.php
  35. 0 {test → tests}/Stash/Test/HandlersTest.php
  36. 0 {test → tests}/Stash/Test/ManagerTest.php
  37. 0 {test → tests}/Stash/Test/UtilitiesTest.php
  38. +2 −2 {test → tests}/bootstrap.php
View
@@ -1,15 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
-<phpunit bootstrap="./test/bootstrap.php" colors="true">
+<phpunit bootstrap="./tests/bootstrap.php" colors="true">
<testsuites>
- <testsuite name="Assetic Test Suite">
- <directory suffix="Test.php">./test/Stash/</directory>
+ <testsuite name="Stash Test Suite">
+ <directory suffix="Test.php">./tests/Stash/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
- <directory suffix=".php">./lib/Stash/</directory>
+ <directory suffix=".php">./src/Stash/</directory>
</whitelist>
</filter>
</phpunit>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -6,13 +6,13 @@
spl_autoload_register(function($class) {
if (0 === strpos($class, 'Stash\\Test\\')) {
- $file = __DIR__ . '/../test/' . str_replace('\\', '/', $class) . '.php';
+ $file = __DIR__ . '/../tests/' . str_replace('\\', '/', $class) . '.php';
if (file_exists($file)) {
require_once $file;
return true;
}
} elseif (0 === strpos($class, 'Stash\\')) {
- $file = __DIR__ . '/../lib/' . str_replace('\\', '/', $class) . '.php';
+ $file = __DIR__ . '/../src/' . str_replace('\\', '/', $class) . '.php';
if (file_exists($file)) {
require_once $file;
return true;

0 comments on commit 2eb8507

Please sign in to comment.