Guest User

Untitled

a guest
Feb 17th, 2018
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. <?php
  2. class ApiTest extends PHPUnit_Framework_TestCase {
  3. private $CI;
  4.  
  5. public function setUp() {
  6. $this->CI = &get_instance();
  7. }
  8.  
  9. public function testVerifyFormat() {
  10. $data = array(
  11. "token" => "895c0d9b87d5ba256268f7238b61771e2b10291085ecb1015681817cb428fb66",
  12. "updated_registries" => 30
  13. );
  14. $expected = json_encode($data, true);
  15.  
  16. $this->assertEquals(array_keys($data)[0], "token");
  17. $this->assertEquals(array_keys($data)[1], "updated_registries");
  18. $this->assertEquals(2, count($data));
  19. }
  20. }
  21.  
  22. Fatal error: "Call to undefined function get_instance()" in C:xampphtdocsdevops_citestsApiTest.php on line 7
Add Comment
Please, Sign In to add comment