From 75207f352e640f6b942a2daf943c269287f6c689 Mon Sep 17 00:00:00 2001 From: Matthew Weier O'Phinney Date: Fri, 11 May 2012 08:17:31 -0500 Subject: [PATCH 1/3] [zen-12] Removed Dojo from test suite - Dojo integration largely relied on integration with Zend\Form; removing from testing for now, as it has not been refactored to work with the new Zend\Form code. --- .travis/skipped-components | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis/skipped-components b/.travis/skipped-components index 31bcaa87..171dfe9d 100644 --- a/.travis/skipped-components +++ b/.travis/skipped-components @@ -1,5 +1,6 @@ Zend/Amf Zend/Date +Zend/Dojo Zend/Queue Zend/Service Zend/Test From 28bdea26bc8c3890baa9fd0039278d8f6ed513ba Mon Sep 17 00:00:00 2001 From: prolic Date: Mon, 14 May 2012 21:30:13 +0200 Subject: [PATCH 2/3] renamed interfaces in zend\log --- src/Exception/ExceptionInterface.php | 30 ++++++++ src/Exception/InvalidArgumentException.php | 2 +- src/Exception/RuntimeException.php | 2 +- src/Filter/FilterInterface.php | 38 +++++++++ src/Filter/Priority.php | 5 +- src/Filter/Regex.php | 6 +- src/Filter/SuppressFilter.php | 5 +- src/Filter/Validator.php | 3 +- src/Formatter/ErrorHandler.php | 7 +- src/Formatter/ExceptionHandler.php | 4 +- src/Formatter/FormatterInterface.php | 38 +++++++++ src/Formatter/Simple.php | 5 +- src/Formatter/Xml.php | 11 ++- src/LoggableInterface.php | 89 ++++++++++++++++++++++ src/Logger.php | 6 +- src/LoggerAwareInterface.php | 39 ++++++++++ src/Writer/AbstractWriter.php | 11 ++- src/Writer/Db.php | 5 +- src/Writer/WriterInterface.php | 64 ++++++++++++++++ src/WriterBroker.php | 2 +- 20 files changed, 330 insertions(+), 42 deletions(-) create mode 100644 src/Exception/ExceptionInterface.php create mode 100644 src/Filter/FilterInterface.php create mode 100644 src/Formatter/FormatterInterface.php create mode 100644 src/LoggableInterface.php create mode 100644 src/LoggerAwareInterface.php create mode 100644 src/Writer/WriterInterface.php diff --git a/src/Exception/ExceptionInterface.php b/src/Exception/ExceptionInterface.php new file mode 100644 index 00000000..c1e89950 --- /dev/null +++ b/src/Exception/ExceptionInterface.php @@ -0,0 +1,30 @@ +plugin($writer); - } elseif (!$writer instanceof Writer) { + } elseif (!$writer instanceof Writer\WriterInterface) { throw new Exception\InvalidArgumentException(sprintf( 'Writer must implement Zend\Log\Writer; received "%s"', is_object($writer) ? get_class($writer) : gettype($writer) @@ -245,7 +245,7 @@ public function setWriters($writers) throw new Exception\InvalidArgumentException('Writers must be a SplPriorityQueue of Zend\Log\Writer'); } foreach ($writers->toArray() as $writer) { - if (!$writer instanceof Writer) { + if (!$writer instanceof Writer\WriterInterface) { throw new Exception\InvalidArgumentException('Writers must be a SplPriorityQueue of Zend\Log\Writer'); } } diff --git a/src/LoggerAwareInterface.php b/src/LoggerAwareInterface.php new file mode 100644 index 00000000..96d88ce5 --- /dev/null +++ b/src/LoggerAwareInterface.php @@ -0,0 +1,39 @@ +db = $db; @@ -90,10 +90,11 @@ public function __construct(Adapter $db, $tableName, array $columnMap = null, $s /** * Formatting is not possible on this writer * + * @param Formatter\FormatterInterface $formatter * @return void * @throws Exception\InvalidArgumentException */ - public function setFormatter(Formatter $formatter) + public function setFormatter(Formatter\FormatterInterface $formatter) { throw new Exception\InvalidArgumentException(get_class() . ' does not support formatting'); } diff --git a/src/Writer/WriterInterface.php b/src/Writer/WriterInterface.php new file mode 100644 index 00000000..4b88d872 --- /dev/null +++ b/src/Writer/WriterInterface.php @@ -0,0 +1,64 @@ + Date: Fri, 18 May 2012 00:22:37 +0200 Subject: [PATCH 3/3] [Travis] Enable Zend\Math tests --- .travis/tested-components | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis/tested-components b/.travis/tested-components index b1f4a794..9b338206 100644 --- a/.travis/tested-components +++ b/.travis/tested-components @@ -29,6 +29,7 @@ Zend/Locale Zend/Log Zend/Mail Zend/Markup +Zend/Math Zend/Measure Zend/Memory Zend/Mime