<?php

namespace FullyBaked\Pslackr;

use PHPUnit_Framework_TestCase;

class PslackrTest extends PHPUnit_Framework_TestCase
{
    public function testConstructorSetsConfigProperty()
    {
        $config = ['domain' => 'tester', 'token' => '123456'];

        $relection = new \ReflectionClass('FullyBaked\Pslackr\Pslackr');
        $tokenAttr = $relection->getProperty('token');
        $tokenAttr->setAccessible(true);
        $domainAttr = $relection->getProperty('domain');
        $domainAttr->setAccessible(true);

        $slack = new Pslackr($config);

        $this->assertEquals($config['token'], $tokenAttr->getValue($slack));
        $this->assertEquals($config['domain'], $domainAttr->getValue($slack));
    }
}

<?php

namespace FullyBaked\Pslackr;

use PHPUnit_Framework_TestCase;

class PslackrTest extends PHPUnit_Framework_TestCase
{
    public function testConstructorSetsConfigProperty()
    {
        $config = ['domain' => 'tester', 'token' => '123456'];

        $relection = new \ReflectionClass('FullyBaked\Pslackr\Pslackr');
        $tokenAttr = $relection->getProperty('token');
        $tokenAttr->setAccessible(true);

        $slack = new Pslackr($config);

        $this->assertEquals($config['token'], $tokenAttr->getValue($slack));
    }
}

Update test to reflect changes to class
Update test to reflect changes to class
