<commit_before><?php
/**
 * AmChartsPHP
 * 
 * @link      http://github.com/neeckeloo/AmChartsPHP
 * @copyright Copyright (c) 2012 <NAME>
 */
namespace AmCharts\Chart;

class CoordinateTest extends \PHPUnit_Framework_TestCase
{   
    /**
     * @var Coordinate
     */
    protected $chart;
    
    public function setUp()
    {
        $this->chart = $this->getMockForAbstractClass('AmCharts\Chart\Coordinate');
    }
    
    public function testSetSequencedAnimation()
    {        
        $this->chart->setSequencedAnimation(false);
        $this->assertFalse($this->chart->isSequencedAnimation());
    }
    
    public function testSetStartAlpha()
    {
        $this->assertEquals(100, $this->chart->getStartAlpha());
        
        $alpha = 20;
        $this->chart->setStartAlpha($alpha);
        $this->assertEquals($alpha, $this->chart->getStartAlpha());
    }
    
    public function testSetStartDuration()
    {
        $duration = 20;
        $this->chart->setStartDuration($duration);
        $this->assertEquals($duration, $this->chart->getStartDuration());
    }
    
    public function testSetStartEffect()
    {
        $effect = Coordinate::EFFECT_ELASTIC;
        $this->chart->setStartEffect($effect);
        $this->assertEquals($effect, $this->chart->getStartEffect());
    }
    
    /**
     * @expectedException AmCharts\Exception\InvalidArgumentException 
     */
    public function testSetStartEffectWithInvalidParam()
    {
        $this->chart->setStartEffect('foo');
    }
    
    public function testSetUrlTarget()
    {
        $url = 'foo';
        $this->chart->setUrlTarget($url);
        $this->assertEquals($url, $this->chart->getUrlTarget());
    }
    
    public function testGetValueAxis()
    {
        $valueAxis = $this->chart->valueAxis();
        $this->assertInstanceOf('AmCharts\Chart\Axis\Value', $valueAxis);
    }
}<commit_msg>Add data provider test class<commit_after><?php
/**
 * AmChartsPHP
 * 
 * @link      http://github.com/neeckeloo/AmChartsPHP
 * @copyright Copyright (c) 2012 <NAME>
 */
namespace AmCharts\Chart;

class DataProviderTest extends \PHPUnit_Framework_TestCase
{   
    /**
     * @var DataProvider
     */
    protected $provider;
    
    public function setUp()
    {
        $this->provider = new DataProvider(array('foo' => 123, 'bar' => 456));
    }
    
    public function testGetData()
    {
        $this->assertTrue(is_array($this->provider->getData()));
    }
}
{'fraction_non_alphanumeric': 0.1449511400651466, 'fraction_numerical': 0.008550488599348535, 'mean_word_length': 2.661698956780924, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 46, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '400775', 'n_tokens_mistral': 747, 'n_tokens_neox': 724, 'n_words': 112}