From 122bedc6975d18b781c3e7c0ec3de03978f56e7d Mon Sep 17 00:00:00 2001 From: dotzero Date: Wed, 11 Oct 2017 22:42:41 +0300 Subject: [PATCH] Update phar --- build/packager.php | 2 +- build/test_phar.php | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/build/packager.php b/build/packager.php index 31732d8..e24d6f0 100644 --- a/build/packager.php +++ b/build/packager.php @@ -24,5 +24,5 @@ $packager->createPhar(__DIR__ . '/artifacts/amocrm.phar'); $packager->startSection('test-phar'); -echo $packager->exec('php ' . __DIR__ . '/test_phar.php'); +echo $packager->exec('php ' . __DIR__ . '/test_phar.php') . "\n"; $packager->endSection(); diff --git a/build/test_phar.php b/build/test_phar.php index 63f71dc..982d712 100644 --- a/build/test_phar.php +++ b/build/test_phar.php @@ -3,17 +3,23 @@ $models = [ ['account', '\AmoCRM\Models\Account'], + ['call', '\AmoCRM\Models\Call'], + ['catalog', '\AmoCRM\Models\Catalog'], + ['catalog_element', '\AmoCRM\Models\CatalogElement'], ['company', '\AmoCRM\Models\Company'], ['contact', '\AmoCRM\Models\Contact'], ['customer', '\AmoCRM\Models\Customer'], ['customers_periods', '\AmoCRM\Models\CustomersPeriods'], + ['custom_field', '\AmoCRM\Models\CustomField'], ['lead', '\AmoCRM\Models\Lead'], + ['links', '\AmoCRM\Models\Links'], ['note', '\AmoCRM\Models\Note'], - ['task', '\AmoCRM\Models\Task'], ['pipelines', '\AmoCRM\Models\Pipelines'], + ['task', '\AmoCRM\Models\Task'], + ['transaction', '\AmoCRM\Models\Transaction'], ['unsorted', '\AmoCRM\Models\Unsorted'], + ['webhooks', '\AmoCRM\Models\Webhooks'], ['widgets', '\AmoCRM\Models\Widgets'], - ['web_hooks', '\AmoCRM\Models\Webhooks'], ]; $amo = new \AmoCRM\Client('example', 'login', 'hash'); @@ -21,4 +27,4 @@ foreach ($models as $model) { echo $amo->{$model[0]} . "\n"; assert($amo->{$model[0]} instanceof $model[1]); -} \ No newline at end of file +}