|
@@ -80,6 +80,9 @@ final class AnnotationTest extends \PHPUnit_Framework_TestCase
|
|
private static $tags = array('param', 'param', 'param', 'throws', 'return');
|
|
private static $tags = array('param', 'param', 'param', 'throws', 'return');
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
+ * @param int $index
|
|
|
|
+ * @param string $content
|
|
|
|
+ *
|
|
* @dataProvider provideContent
|
|
* @dataProvider provideContent
|
|
*/
|
|
*/
|
|
public function testGetContent($index, $content)
|
|
public function testGetContent($index, $content)
|
|
@@ -103,6 +106,9 @@ final class AnnotationTest extends \PHPUnit_Framework_TestCase
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
+ * @param int $index
|
|
|
|
+ * @param int $start
|
|
|
|
+ *
|
|
* @dataProvider provideStartCases
|
|
* @dataProvider provideStartCases
|
|
*/
|
|
*/
|
|
public function testStart($index, $start)
|
|
public function testStart($index, $start)
|
|
@@ -125,6 +131,9 @@ final class AnnotationTest extends \PHPUnit_Framework_TestCase
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
+ * @param int $index
|
|
|
|
+ * @param int $end
|
|
|
|
+ *
|
|
* @dataProvider provideEndCases
|
|
* @dataProvider provideEndCases
|
|
*/
|
|
*/
|
|
public function testEnd($index, $end)
|
|
public function testEnd($index, $end)
|
|
@@ -147,6 +156,9 @@ final class AnnotationTest extends \PHPUnit_Framework_TestCase
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
+ * @param int $index
|
|
|
|
+ * @param string $tag
|
|
|
|
+ *
|
|
* @dataProvider provideTags
|
|
* @dataProvider provideTags
|
|
*/
|
|
*/
|
|
public function testGetTag($index, $tag)
|
|
public function testGetTag($index, $tag)
|
|
@@ -169,6 +181,10 @@ final class AnnotationTest extends \PHPUnit_Framework_TestCase
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
+ * @param int $index
|
|
|
|
+ * @param int $start
|
|
|
|
+ * @param int $end
|
|
|
|
+ *
|
|
* @dataProvider provideRemoveCases
|
|
* @dataProvider provideRemoveCases
|
|
*/
|
|
*/
|
|
public function testRemove($index, $start, $end)
|
|
public function testRemove($index, $start, $end)
|
|
@@ -194,6 +210,11 @@ final class AnnotationTest extends \PHPUnit_Framework_TestCase
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
+ * @param string[] $expected
|
|
|
|
+ * @param string[] $new
|
|
|
|
+ * @param string $input
|
|
|
|
+ * @param string $output
|
|
|
|
+ *
|
|
* @dataProvider provideTypesCases
|
|
* @dataProvider provideTypesCases
|
|
*/
|
|
*/
|
|
public function testTypes($expected, $new, $input, $output)
|
|
public function testTypes($expected, $new, $input, $output)
|