Answer the question
In order to leave comments, you need to log in
Is there any standard or best practices for using assertSame , assertEquals , assertTrue and others similar?
In fact, you can use each of
$shouldBeClass = UploadedFile::class;
$actualClass = \get_class($instance->file());
static::assertSame(
$shouldBeClass,
$actualClass,
\sprintf('Should be %s got %s', $shouldBeClass, $actualClass)
);
// or
static::assertTrue(
$shouldBeClass === $actualClass,
\sprintf('Should be %s got %s', $shouldBeClass, $actualClass)
);
// else ...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question