First tests

This commit is contained in:
Ismo Vuorinen
2017-09-13 19:30:05 +03:00
parent 3a2b7e8616
commit 81aa917de2
4 changed files with 1515 additions and 0 deletions

18
tests/PaletteTests.php Normal file
View File

@@ -0,0 +1,18 @@
<?php
class PaletteTests extends \PHPUnit_Framework_TestCase
{
public $palette;
public function test_class_is_found_and_has_default_attributes()
{
$this->palette = new \ivuorinen\Palette\Palette();
$this->assertInstanceOf('ivuorinen\Palette\Palette', $this->palette);
$this->assertInternalType('integer', $this->palette->precision);
$this->assertInternalType('integer', $this->palette->returnColors);
$this->assertInternalType('array', $this->palette->colorsArray);
$this->assertInternalType('null', $this->palette->filename);
$this->assertInternalType('string', $this->palette->destination);
}
}