Skip to content

Commit 64890c1

Browse files
committed
Unify @test references in API documentation
1 parent 2c1557f commit 64890c1

11 files changed

+17
-19
lines changed

src/main/php/text/json/DenseFormat.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Dense JSON format - no insignificant whitespace between tokens. Ideal
55
* use on network I/O.
66
*
7-
* @test xp://text.json.unittest.DenseFormatTest
7+
* @test text.json.unittest.DenseFormatTest
88
*/
99
class DenseFormat extends Format {
1010

src/main/php/text/json/FileInput.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* $value= $json->read();
1111
* ```
1212
*
13-
* @test xp://text.json.unittest.FileInputTest
13+
* @test text.json.unittest.FileInputTest
1414
*/
1515
class FileInput extends StreamInput {
1616
protected $file, $wasOpen;

src/main/php/text/json/FileOutput.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* $json->write('Hello World');
1111
* ```
1212
*
13-
* @test xp://text.json.unittest.FileOutputTest
13+
* @test text.json.unittest.FileOutputTest
1414
*/
1515
class FileOutput extends Output {
1616
protected $file, $wasOpen;

src/main/php/text/json/Input.class.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,7 @@
33
use lang\{FormatException, Value};
44
use util\Objects;
55

6-
/**
7-
* Base class for JSON input implementations
8-
*
9-
* @see xp://text.json.JsonString
10-
* @see xp://text.json.JsonStream
11-
*/
6+
/** Base class for JSON input implementations */
127
abstract class Input implements Value {
138
protected $bytes;
149
protected $len;

src/main/php/text/json/Json.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Simple entry point class
55
*
66
* @see https://github.com/xp-forge/json/issues/3
7-
* @test xp://text.json.unittest.JsonTest
7+
* @test text.json.unittest.JsonTest
88
*/
99
abstract class Json {
1010

src/main/php/text/json/Stream.class.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
<?php namespace text\json;
22

3-
abstract class Stream implements \lang\Closeable {
3+
use lang\Closeable;
4+
5+
abstract class Stream implements Closeable {
46
protected $out;
57

8+
/** Creates a new instance */
69
public function __construct(Output $out) {
710
$this->out= $out;
811
}

src/main/php/text/json/StreamInput.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* $value= $json->read();
1313
* ```
1414
*
15-
* @test xp://text.json.unittest.StreamInputTest
15+
* @test text.json.unittest.StreamInputTest
1616
*/
1717
class StreamInput extends Input {
1818
protected $in, $offset;

src/main/php/text/json/StreamOutput.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* $json->write('Hello World');
1111
* ```
1212
*
13-
* @test xp://text.json.unittest.StreamOutputTest
13+
* @test /text.json.unittest.StreamOutputTest
1414
*/
1515
class StreamOutput extends Output {
1616
protected $stream;

src/main/php/text/json/StringInput.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* $value= $json->read();
1111
* ```
1212
*
13-
* @test xp://text.json.unittest.StringInputTest
13+
* @test text.json.unittest.StringInputTest
1414
*/
1515
class StringInput extends Input {
1616

src/main/php/text/json/StringOutput.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* echo $json->bytes();
1212
* ```
1313
*
14-
* @test xp://text.json.unittest.StringOutputTest
14+
* @test text.json.unittest.StringOutputTest
1515
*/
1616
class StringOutput extends Output {
1717
protected $bytes= null;

0 commit comments

Comments
 (0)