assertSame( $first, $second ); $first->add( 'id', new \Yoast_ACF_Analysis_Configuration( new \Yoast_ACF_Analysis_String_Store(), new \Yoast_ACF_Analysis_String_Store(), new \Yoast_ACF_Analysis_String_Store() ) ); $this->assertSame( $first, $second ); } /** * Tests that adding a non-existing item to the registy, succeeds and that the item can be found based on its ID. * * @return void */ public function testAdd() { $id = 'add'; $content = 'something'; $registry = new \Yoast_ACF_Analysis_Registry(); $this->assertNull( $registry->get( $id ) ); $registry->add( $id, $content ); $this->assertSame( $content, $registry->get( $id ) ); } }