Exemple #1
0
<?php 
if ($token != '') {
    ?>
<button id="sendImg" style="float: left;margin-left: 10px;" class="btn-primary">Send images</button>
<?php 
}
?>
<br>
<br>
<?php 
if (isset($response->error) || $user_uid != $response->response[0]->uid) {
    ?>
    <a target="_blank"
       href="https://oauth.vk.com/authorize?client_id=5065182&display=popup&redirect_uri=https://oauth.vk.com/blank.html&scope=photos,wall,offline&response_type=token">GET
        VK access token</a>
    <form method="post" action="classes/saveToken.php">
        <input type="text" placeholder="Insert access token" name="access_token">
        <button type="submit" class="btn">SAVE</button>
    </form>
<?php 
}
if (isset($_GET['name'])) {
    $blog = new \classes\tumblrParser();
    $images = $blog->getPictures($_GET['name']);
}
?>


</body>
</html>
 /**
  * @dataProvider provider
  */
 public function testGetPicture($blogName)
 {
     $test = new \classes\tumblrParser();
     $this->assertNotEmpty($test->getPictures($blogName));
 }