Skip to content

Commit

Permalink
tests: make sure ifce sync
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Jul 15, 2024
1 parent fc8ed23 commit b3f1e0c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions marshal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,14 @@ import (
"github.com/volatiletech/null/v9"

"github.com/trim21/go-phpserialize"
"github.com/trim21/go-phpserialize/internal/encoder"
"github.com/trim21/go-phpserialize/internal/test"
)

// make sure they are equal
var _ phpserialize.Marshaler = encoder.Marshaler(nil)
var _ encoder.Marshaler = phpserialize.Marshaler(nil)

func init() {
color.NoColor = false // force color
}
Expand Down
5 changes: 5 additions & 0 deletions unmarshal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@ import (
"github.com/stretchr/testify/require"

"github.com/trim21/go-phpserialize"
"github.com/trim21/go-phpserialize/internal/decoder"
)

// make sure they are equal
var _ phpserialize.Unmarshaler = decoder.Unmarshaler(nil)
var _ decoder.Unmarshaler = phpserialize.Unmarshaler(nil)

func TestUnmarshal_as_string(t *testing.T) {
t.Parallel()

Expand Down

0 comments on commit b3f1e0c

Please sign in to comment.