From b31d439dac3c01b0b28332e439c07d4fe5a578cc Mon Sep 17 00:00:00 2001 From: William DURAND Date: Sat, 17 Nov 2012 18:05:05 +0100 Subject: [PATCH] Fix tests --- Formatter/MarkdownFormatter.php | 4 ++-- Tests/Formatter/SimpleFormatterTest.php | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Formatter/MarkdownFormatter.php b/Formatter/MarkdownFormatter.php index 3f3ac32..8e3dd76 100644 --- a/Formatter/MarkdownFormatter.php +++ b/Formatter/MarkdownFormatter.php @@ -43,8 +43,8 @@ class MarkdownFormatter extends AbstractFormatter $markdown .= sprintf(" - Requirement: %s\n", $infos['requirement']); } - if (!empty($infos['type'])) { - $markdown .= sprintf(" - Type: %s\n", $infos['type']); + if (!empty($infos['dataType'])) { + $markdown .= sprintf(" - Type: %s\n", $infos['dataType']); } if (!empty($infos['description'])) { diff --git a/Tests/Formatter/SimpleFormatterTest.php b/Tests/Formatter/SimpleFormatterTest.php index 0fef777..af5236b 100644 --- a/Tests/Formatter/SimpleFormatterTest.php +++ b/Tests/Formatter/SimpleFormatterTest.php @@ -48,7 +48,7 @@ class SimpleFormatterTest extends WebTestCase ), 'description' => 'index action', 'requirements' => array( - '_format' => array('type' => '', 'description' => '', 'requirement' => ''), + '_format' => array('dataType' => '', 'description' => '', 'requirement' => ''), ), ), 1 => @@ -73,7 +73,7 @@ class SimpleFormatterTest extends WebTestCase ), 'description' => 'index action', 'requirements' => array( - '_format' => array('type' => '', 'description' => '', 'requirement' => ''), + '_format' => array('dataType' => '', 'description' => '', 'requirement' => ''), ), ), 2 => @@ -106,7 +106,7 @@ class SimpleFormatterTest extends WebTestCase ), 'description' => 'create test', 'requirements' => array( - '_format' => array('type' => '', 'description' => '', 'requirement' => ''), + '_format' => array('dataType' => '', 'description' => '', 'requirement' => ''), ), ), 3 => @@ -139,7 +139,7 @@ class SimpleFormatterTest extends WebTestCase ), 'description' => 'create test', 'requirements' => array( - '_format' => array('type' => '', 'description' => '', 'requirement' => ''), + '_format' => array('dataType' => '', 'description' => '', 'requirement' => ''), ), ), ), @@ -173,7 +173,7 @@ class SimpleFormatterTest extends WebTestCase 'uri' => '/any/{foo}', 'requirements' => array( - 'foo' => array('type' => '', 'description' => '', 'requirement' => ''), + 'foo' => array('dataType' => '', 'description' => '', 'requirement' => ''), ), 'description' => 'Action without HTTP verb', ), @@ -290,8 +290,8 @@ With multiple lines.', 'uri' => '/my-commented/{id}/{page}', 'requirements' => array( - 'id' => array('type' => 'int', 'description' => 'A nice comment', 'requirement' => ''), - 'page' => array('type' => 'int', 'description' => '', 'requirement' => ''), + 'id' => array('dataType' => 'int', 'description' => 'A nice comment', 'requirement' => ''), + 'page' => array('dataType' => 'int', 'description' => '', 'requirement' => ''), ), 'description' => 'This method is useful to test if the getDocComment works.', 'documentation' => "This method is useful to test if the getDocComment works.\nAnd, it supports multilines until the first '@' char." @@ -302,7 +302,7 @@ With multiple lines.', 'uri' => '/yet-another/{id}', 'requirements' => array( - 'id' => array('type' => '', 'description' => '', 'requirement' => '\d+') + 'id' => array('dataType' => '', 'description' => '', 'requirement' => '\d+') ), ), 7 => @@ -354,7 +354,7 @@ With multiple lines.', ), 'description' => 'index action', 'requirements' => array( - '_format' => array('type' => '', 'description' => '', 'requirement' => ''), + '_format' => array('dataType' => '', 'description' => '', 'requirement' => ''), ), );