diff --git a/demo/Creational/Singleton/Run.php b/demo/Creational/Singleton/Run.php new file mode 100644 index 0000000..1ffa60d --- /dev/null +++ b/demo/Creational/Singleton/Run.php @@ -0,0 +1,41 @@ +assertInstanceOf(Singleton::class, $firstCall); + // 断言两个变量具有相同的类型和值。 用于对象,它断言两个变量引用同一个对象 + $this->assertSame($firstCall, $secondCall); + } +} \ No newline at end of file