assertContains( "Expected: 'STRING' - It appears you have an extra trailing comma", $instance->getMessage() ); } public function testCanConstruct_FileNotReadable() { $instance = new JSONFileParseException( 'Foo' ); $this->assertContains( "Foo is not readable!", $instance->getMessage() ); } }