Skip to content

Commit

Permalink
Renamed test.php to project.php
Browse files Browse the repository at this point in the history
  • Loading branch information
WyriHaximus committed Jun 7, 2016
1 parent 936012f commit 7c35c4c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 16 deletions.
26 changes: 26 additions & 0 deletions examples/project.php
@@ -0,0 +1,26 @@
<?php

use React\Cache\ArrayCache;
use WyriHaximus\AppVeyor\Client;

require dirname(__DIR__) . DIRECTORY_SEPARATOR . 'vendor/autoload.php';

$client = new Client(require 'resolve_key.php', [
'cache' => new ArrayCache(),
]);

echo time(), PHP_EOL;
$project = $client->project($argv[1] ?? 'WyriHaximus/php-appveyor-client');
echo 'Project: ', $project->name(), PHP_EOL;
echo "\t", 'ID: ', $project->projectId(), PHP_EOL;
echo "\t", 'SCM: ', $project->repositoryScm(), PHP_EOL;
echo "\t", 'SCM Type: ', $project->repositoryType(), PHP_EOL;
echo "\t", 'Repository: ', $project->repositoryName(), PHP_EOL;
echo time(), PHP_EOL;
$project = $client->project($argv[1] ?? 'WyriHaximus/php-appveyor-client');
echo 'Project: ', $project->name(), PHP_EOL;
echo "\t", 'ID: ', $project->projectId(), PHP_EOL;
echo "\t", 'SCM: ', $project->repositoryScm(), PHP_EOL;
echo "\t", 'SCM Type: ', $project->repositoryType(), PHP_EOL;
echo "\t", 'Repository: ', $project->repositoryName(), PHP_EOL;
echo time(), PHP_EOL;
16 changes: 0 additions & 16 deletions examples/test.php

This file was deleted.

0 comments on commit 7c35c4c

Please sign in to comment.