You are here

public function GdImageAnalysisTest::testMean in Image Effects 8.3

Same name and namespace in other branches
  1. 8 tests/src/Unit/GdImageAnalysisTest.php \Drupal\Tests\image_effects\Unit\GdImageAnalysisTest::testMean()
  2. 8.2 tests/src/Unit/GdImageAnalysisTest.php \Drupal\Tests\image_effects\Unit\GdImageAnalysisTest::testMean()

Verify the mean calculation with a known image.

File

tests/src/Unit/GdImageAnalysisTest.php, line 38

Class

GdImageAnalysisTest
Tests the image analysis helper methods.

Namespace

Drupal\Tests\image_effects\Unit

Code

public function testMean() {
  $this
    ->assertEquals(85, GdImageAnalysis::mean($this->testImage));
}