$this->assertEquals( '', $req->getText( 'z' ) );
}
- // Integration test for parent method.
+ /**
+ * Integration test for parent method
+ * @covers FauxRequest::getVal
+ */
public function testGetVal() {
$req = new FauxRequest( [ 'crlf' => "A\r\nb" ] );
$this->assertSame( "A\r\nb", $req->getVal( 'crlf' ), 'CRLF' );
}
- // Integration test for parent method.
+ /**
+ * Integration test for parent method
+ * @covers FauxRequest::getRawVal
+ */
public function testGetRawVal() {
$req = new FauxRequest( [
'x' => 'Value',
<?php
+/**
+ * @covers HTMLRestrictionsField
+ */
class HTMLRestrictionsFieldTest extends PHPUnit_Framework_TestCase {
public function testConstruct() {
$field = new HTMLRestrictionsField( [ 'fieldname' => 'restrictions' ] );
<?php
+/**
+ * @covers DeferredStringifier
+ */
class DeferredStringifierTest extends PHPUnit_Framework_TestCase {
/**
- * @covers DeferredStringifier
* @dataProvider provideToString
*/
public function testToString( $params, $expected ) {
<?php
+/**
+ * @covers DnsSrvDiscoverer
+ */
class DnsSrvDiscovererTest extends PHPUnit_Framework_TestCase {
/**
- * @covers DnsSrvDiscoverer
* @dataProvider provideRecords
*/
public function testPickServer( $params, $expected ) {
}
/**
- * Test for IP::splitHostAndPort().
+ * @covers IP::splitHostAndPort()
* @dataProvider provideSplitHostAndPort
*/
public function testSplitHostAndPort( $expected, $input, $description ) {
}
/**
- * Test for IP::combineHostAndPort()
+ * @covers IP::combineHostAndPort()
* @dataProvider provideCombineHostAndPort
*/
public function testCombineHostAndPort( $expected, $input, $description ) {
}
/**
- * Test for IP::sanitizeRange()
+ * @covers IP::sanitizeRange()
* @dataProvider provideIPCIDRs
*/
public function testSanitizeRange( $input, $expected, $description ) {
}
/**
- * Test for IP::prettifyIP()
+ * @covers IP::prettifyIP()
* @dataProvider provideIPsToPrettify
*/
public function testPrettifyIP( $ip, $prettified ) {
/**
* Highlight diff between assertEquals and assertNotSame
+ * @coversNothing
*/
public function testPhpUnitArrayEquality() {
$one = [ 'A' => 1, 'B' => 2 ];
use Liuggio\StatsdClient\Entity\StatsdData;
use Liuggio\StatsdClient\Sender\SenderInterface;
+/**
+ * @covers SamplingStatsdClient
+ */
class SamplingStatsdClientTest extends PHPUnit_Framework_TestCase {
/**
* @dataProvider samplingDataProvider
<?php
-/*
+/**
* @group Media
* @covers MimeAnalyzer
*/
use Wikimedia\Rdbms\TransactionProfiler;
use Psr\Log\LoggerInterface;
+/**
+ * @covers \Wikimedia\Rdbms\TransactionProfiler
+ */
class TransactionProfilerTest extends PHPUnit_Framework_TestCase {
public function testAffected() {
$logger = $this->getMockBuilder( LoggerInterface::class )->getMock();
* dataprovider.
*/
+/**
+ * @covers AvroValidator
+ */
class AvroValidatorTest extends PHPUnit_Framework_TestCase {
public function setUp() {
if ( !class_exists( 'AvroSchema' ) ) {
<?php
+
/**
- *
* @group Hash
+ *
+ * @covers MWCryptHash
*/
-
class MWCryptHashTest extends PHPUnit_Framework_TestCase {
public function testHashLength() {