<commit_before><?php

use ThatChrisR\RunescapeHighscores\Player;
use VCR\VCR;

class PlayerTest extends PHPUnit_Framework_TestCase
{
	protected function setup()
	{
		VCR::turnOn();
		VCR::insertCassette('rsHighscores');

		$this->displayName = '<NAME>';
		$this->player = new Player($this->displayName);

		VCR::eject();
		VCR::turnOff();
	}

	public function testGetDisplayName()
	{
		$playerName = $this->player->getDisplayName();

		$this->assertEquals($playerName, $this->displayName);
	}
}<commit_msg>Basic test for getting a skill, this relies on you using the same fixture, might not be flexible enough<commit_after><?php

use ThatChrisR\RunescapeHighscores\Player;
use VCR\VCR;

class PlayerTest extends PHPUnit_Framework_TestCase
{
	protected function setup()
	{
		VCR::turnOn();
		VCR::insertCassette('rsHighscores');

		$this->displayName = 'Das Wanderer';
		$this->player = new Player($this->displayName);

		VCR::eject();
		VCR::turnOff();
	}

	public function testGetDisplayName()
	{
		$playerName = $this->player->getDisplayName();

		$this->assertEquals($playerName, $this->displayName);
	}

	public function testGetSkill()
	{
		$attackLevel = $this->player->getSkill('attack', 'level');

		$this->assertEquals($attackLevel, '97');
	}
}
{'fraction_non_alphanumeric': 0.15415335463258786, 'fraction_numerical': 0.001597444089456869, 'mean_word_length': 5.560209424083769, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 21, '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': '2057502', 'n_tokens_mistral': 450, 'n_tokens_neox': 408, 'n_words': 83}