Fix incorrect or missing type annotations.

This commit is contained in:
Justin Hileman
2014-03-25 07:31:04 -07:00
parent 22a47452da
commit f696e7afa6
15 changed files with 41 additions and 7 deletions
@@ -44,6 +44,9 @@ class Mustache_Test_Cache_FilesystemCacheTest extends PHPUnit_Framework_TestCase
$this->assertTrue($loaded);
}
/**
* @param string $path
*/
private static function rmdir($path)
{
$path = rtrim($path, '/').'/';
+3
View File
@@ -142,6 +142,9 @@ class Mustache_Test_CompilerTest extends PHPUnit_Framework_TestCase
$compiler->compile('', array(array(Mustache_Tokenizer::TYPE => 'invalid')), 'SomeClass');
}
/**
* @param string $value
*/
private function createTextToken($value)
{
return array(
+3
View File
@@ -349,6 +349,9 @@ class Mustache_Test_EngineTest extends PHPUnit_Framework_TestCase
$this->assertContains("WARNING: Partial not found: \"bar\"", $log);
}
/**
* @param string $path
*/
private static function rmdir($path)
{
$path = rtrim($path, '/').'/';
@@ -78,7 +78,8 @@ class Mustache_Test_FiveThree_Functional_MustacheSpecTest extends PHPUnit_Framew
*
* Loads YAML files from the spec and converts them to PHPisms.
*
* @access public
* @param string $name
*
* @return array
*/
private function loadSpec($name)
@@ -112,6 +112,9 @@ class Mustache_Test_Functional_Foo
return sprintf('<em>%s</em>', $text);
}
/**
* @param string $text
*/
public function wrapWithStrong($text)
{
return sprintf('<strong>%s</strong>', $text);
@@ -132,7 +132,8 @@ class Mustache_Test_Functional_MustacheSpecTest extends PHPUnit_Framework_TestCa
*
* Loads YAML files from the spec and converts them to PHPisms.
*
* @access public
* @param string $name
*
* @return array
*/
private function loadSpec($name)