You are here

public function MatchObjectTest::testCastAsStringReturnsJson in Bibliography Module 7.2

File

lib/msrc-authortool/tests/MatchObjectTest.php, line 36

Class

MatchObjectTest

Code

public function testCastAsStringReturnsJson() {
  $obj = new TestMatchObject();
  $obj->name = "Bob";
  $obj->email = "bob@example.com";
  $toMatch = '{"name":"Bob","email":"bob@example.com"}';
  $this
    ->assertEquals($toMatch, $obj);
}