You are here

public function StatsDTest::testConstructorArgumentsSadExtra in StatsD 7.2

Make sure undefined arguments are not reflected in new instance.

File

lib/Drupal/statsd/Tests/StatsDTest.php, line 54
Tests for statsd module.

Class

StatsDTest
Unit tests for statsd.inc

Namespace

Drupal\statsd\Tests

Code

public function testConstructorArgumentsSadExtra() {
  $parameters = array(
    'foo' => 'bar',
  );
  $statsd = new \StatsD($parameters);
  $this
    ->assertTrue(!isset($statsd->foo), 'Extra parameters are ignored.');
}