<commit_before><?php
/*
 * This file is part of AffilinetAPI.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace AffilinetAPI;

include_once 'src/ProductLogon.php';
include_once 'src/ProductService.php';

class AffilinetProductServiceTest extends \PHPUnit_Framework_TestCase
{
  protected static $logon;
  protected static $productService;

  /**
   * @beforeClass
   */
  public static function setUpBeforeClass() {
    self::$logon = new ProductLogon(\AffilinetCredentials::PUBLISHER_ID,\AffilinetCredentials::PRODUCT_PASSWORD);
    self::$productService = new ProductService(self::$logon);
  }


  /**
   * @test
   *
  */
  public function testGetPropertyListByShopId() {
    $propertyList = self::$productService->getPropertyListByShopId(1);<commit_msg>rename class<commit_after><?php
/*
 * This file is part of AffilinetAPI.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace AffilinetAPI;

include_once 'src/ProductLogon.php';
include_once 'src/ProductService.php';

class ProductServiceTest extends \PHPUnit_Framework_TestCase
{
  protected static $logon;
  protected static $productService;

  /**
   * @beforeClass
   */
  public static function setUpBeforeClass() {
    self::$logon = new ProductLogon(\AffilinetCredentials::PUBLISHER_ID,\AffilinetCredentials::PRODUCT_PASSWORD);
    self::$productService = new ProductService(self::$logon);
  }


  /**
   * @test
   *
  */
  public function testGetPropertyListByShopId() {
    $propertyList = self::$productService->getPropertyListByShopId(1);
{'fraction_non_alphanumeric': 0.11327231121281464, 'fraction_numerical': 0.0011441647597254005, 'mean_word_length': 4.715686274509804, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '2202444', 'n_tokens_mistral': 523, 'n_tokens_neox': 529, 'n_words': 124}